Fixed non register error

This commit is contained in:
Deichor 2024-12-10 04:42:30 +03:00
parent a5fba826da
commit 7359d6e5be

View File

@ -150,9 +150,9 @@ public class PlayerListener implements Listener {
// Slow, blocking checks
try {
final PlayerAuth auth = dataSource.getAuth(name);
final boolean isAuthAvailable = (auth != null && auth.isEmailVerified());
final boolean isAuthAvailable= auth != null;
onJoinVerifier.checkKickNonRegistered(isAuthAvailable);
onJoinVerifier.checkKickNotVerified(isAuthAvailable);
onJoinVerifier.checkKickNotVerified(auth != null && auth.isEmailVerified());
onJoinVerifier.checkAntibot(name, isAuthAvailable);
onJoinVerifier.checkNameCasing(name, auth);
final String ip = event.getAddress().getHostAddress();