Fix #780
This commit is contained in:
parent
12533a90f6
commit
e1d697d386
@ -235,13 +235,14 @@ public class AuthMePlayerListener implements Listener {
|
|||||||
return;
|
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 PlayerAuth auth = dataSource.getAuth(player.getName());
|
||||||
final boolean isAuthAvailable = (auth != null);
|
final boolean isAuthAvailable = (auth != null);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
onJoinVerifier.checkSingleSession(name);
|
onJoinVerifier.checkSingleSession(lowerName);
|
||||||
onJoinVerifier.checkAntibot(name, isAuthAvailable);
|
onJoinVerifier.checkAntibot(lowerName, isAuthAvailable);
|
||||||
onJoinVerifier.checkKickNonRegistered(isAuthAvailable);
|
onJoinVerifier.checkKickNonRegistered(isAuthAvailable);
|
||||||
onJoinVerifier.checkIsValidName(name);
|
onJoinVerifier.checkIsValidName(name);
|
||||||
onJoinVerifier.checkNameCasing(player, auth);
|
onJoinVerifier.checkNameCasing(player, auth);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user