mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-22 17:18:37 +01:00
Cross world move check
This commit is contained in:
parent
4abbbcb82b
commit
7d8b0c102c
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user