mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-12-19 15:17:56 +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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Settings.noTeleport) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (Settings.isMovementAllowed && Settings.getMovementRadius <= 0) {
|
if (Settings.isMovementAllowed && Settings.getMovementRadius <= 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -194,6 +190,10 @@ public class AuthMePlayerListener implements Listener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Settings.noTeleport) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
Location spawn = plugin.getSpawnLocation(player);
|
Location spawn = plugin.getSpawnLocation(player);
|
||||||
if (spawn != null && spawn.getWorld() != null) {
|
if (spawn != null && spawn.getWorld() != null) {
|
||||||
if (!player.getWorld().equals(spawn.getWorld())) {
|
if (!player.getWorld().equals(spawn.getWorld())) {
|
||||||
|
Loading…
Reference in New Issue
Block a user