This commit is contained in:
Gabriele C 2016-06-19 11:07:17 +02:00
parent 12533a90f6
commit e1d697d386

View File

@ -235,13 +235,14 @@ public class AuthMePlayerListener implements Listener {
return;
}
final String name = player.getName().toLowerCase();
final String name = player.getName();
final String lowerName = name.toLowerCase();
final PlayerAuth auth = dataSource.getAuth(player.getName());
final boolean isAuthAvailable = (auth != null);
try {
onJoinVerifier.checkSingleSession(name);
onJoinVerifier.checkAntibot(name, isAuthAvailable);
onJoinVerifier.checkSingleSession(lowerName);
onJoinVerifier.checkAntibot(lowerName, isAuthAvailable);
onJoinVerifier.checkKickNonRegistered(isAuthAvailable);
onJoinVerifier.checkIsValidName(name);
onJoinVerifier.checkNameCasing(player, auth);