mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-12-23 17:17:36 +01:00
shouldn't allow movement event noTeleport enabled.
This commit is contained in:
parent
e39ab8a644
commit
bc223b04f9
@ -168,10 +168,6 @@ public class AuthMePlayerListener implements Listener {
|
||||
return;
|
||||
}
|
||||
|
||||
if (Settings.noTeleport) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (Settings.isMovementAllowed && Settings.getMovementRadius <= 0) {
|
||||
return;
|
||||
}
|
||||
@ -194,6 +190,10 @@ public class AuthMePlayerListener implements Listener {
|
||||
}
|
||||
}
|
||||
|
||||
if (Settings.noTeleport) {
|
||||
return;
|
||||
}
|
||||
|
||||
Location spawn = plugin.getSpawnLocation(player);
|
||||
if (spawn != null && spawn.getWorld() != null) {
|
||||
if (!player.getWorld().equals(spawn.getWorld())) {
|
||||
|
Loading…
Reference in New Issue
Block a user