mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-14 05:01:28 +00:00
Cross world move check
This commit is contained in:
parent
4abbbcb82b
commit
7d8b0c102c
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue