From bc223b04f97578174790c5684a08599aefc246cc Mon Sep 17 00:00:00 2001 From: DNx5 Date: Tue, 24 Nov 2015 22:14:14 +0700 Subject: [PATCH] shouldn't allow movement event noTeleport enabled. --- .../fr/xephi/authme/listener/AuthMePlayerListener.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/fr/xephi/authme/listener/AuthMePlayerListener.java b/src/main/java/fr/xephi/authme/listener/AuthMePlayerListener.java index 5e0d690e9..d5ddd7479 100644 --- a/src/main/java/fr/xephi/authme/listener/AuthMePlayerListener.java +++ b/src/main/java/fr/xephi/authme/listener/AuthMePlayerListener.java @@ -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())) {