Cross world move check

This commit is contained in:
snowleo 2011-09-02 17:16:32 +02:00
parent 4abbbcb82b
commit 7d8b0c102c

View File

@ -107,7 +107,8 @@ public class EssentialsPlayerListener extends PlayerListener
return;
}
if (user.getAfkPosition().distanceSquared(user.getLocation()) > 9) {
Location afk = user.getAfkPosition();
if (afk == null || !event.getTo().getWorld().equals(afk.getWorld()) || afk.distanceSquared(event.getTo()) > 9) {
user.updateActivity(true);
}