update player move event listener.

This commit is contained in:
DNx5 2015-11-03 01:53:01 +07:00
parent 9bcc210428
commit f90104ca2d

View File

@ -130,6 +130,9 @@ public class AuthMePlayerListener implements Listener {
@EventHandler(ignoreCancelled = true, priority = EventPriority.MONITOR)
public void onPlayerMove(PlayerMoveEvent event) {
if (Settings.isMovementAllowed && Settings.getMovementRadius <= 0)
return;
Player player = event.getPlayer();
if (Utils.checkAuth(player))
return;