Fix Movement problem

This commit is contained in:
Xephi59 2015-06-11 01:05:44 +02:00
parent a1c09aecfc
commit aa957cc7c9

View File

@ -354,6 +354,12 @@ public class AuthMePlayerListener implements Listener {
return;
}
if (!data.isAuthAvailable(name)) {
if (!Settings.isForcedRegistrationEnabled) {
return;
}
}
if (!Settings.isForcedRegistrationEnabled) {
return;
}
@ -566,13 +572,12 @@ public class AuthMePlayerListener implements Listener {
}
}, 300);
}
@EventHandler(priority = EventPriority.HIGHEST)
public void onPlayerLogin(PlayerLoginEvent event)
{
public void onPlayerLogin(PlayerLoginEvent event) {
if (event.getPlayer() == null)
return;
Player player = event.getPlayer();
String name = player.getName();
String regex = Settings.getNickRegex;