shouldn't allow movement event noTeleport enabled.

This commit is contained in:
DNx5 2015-11-24 22:14:14 +07:00
parent e39ab8a644
commit bc223b04f9

View File

@ -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())) {