Update for new Bukkit version; fix for movement between different territory claims not always reporting the correct territory owner, which appears to be caused by event.getTo() for PlayerMoveEvent currently (as of RB 953) not always giving the correct location
This commit is contained in:
@ -150,7 +150,7 @@ public class FactionsPlayerListener extends PlayerListener{
|
||||
|
||||
// Did we change coord?
|
||||
FLocation from = me.getLastStoodAt();
|
||||
FLocation to = new FLocation(event.getTo());
|
||||
FLocation to = new FLocation(event.getPlayer().getLocation());
|
||||
|
||||
if (from.equals(to)) {
|
||||
return;
|
||||
|
Reference in New Issue
Block a user