Fixed join problem
This commit is contained in:
parent
83fdc4f609
commit
9a128cd8ce
@ -101,7 +101,7 @@ public class OnJoinVerifier implements Reloadable {
|
|||||||
* @throws FailedVerificationException if the email verification is not completed
|
* @throws FailedVerificationException if the email verification is not completed
|
||||||
*/
|
*/
|
||||||
public void checkKickNotVerified(boolean isAuthAvailable) throws FailedVerificationException {
|
public void checkKickNotVerified(boolean isAuthAvailable) throws FailedVerificationException {
|
||||||
if (!isAuthAvailable && settings.getProperty(RestrictionSettings.KICK_NON_REGISTERED) && settings.getProperty(RestrictionSettings.KICK_NOT_VERIFIED)) {
|
if (!isAuthAvailable && settings.getProperty(RestrictionSettings.KICK_NOT_VERIFIED)) {
|
||||||
throw new FailedVerificationException(MessageKey.MUST_VERIFIED_MESSAGE);
|
throw new FailedVerificationException(MessageKey.MUST_VERIFIED_MESSAGE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -150,7 +150,7 @@ public class PlayerListener implements Listener {
|
|||||||
// Slow, blocking checks
|
// Slow, blocking checks
|
||||||
try {
|
try {
|
||||||
final PlayerAuth auth = dataSource.getAuth(name);
|
final PlayerAuth auth = dataSource.getAuth(name);
|
||||||
final boolean isAuthAvailable = auth != null && auth.isEmailVerified();
|
final boolean isAuthAvailable = (auth != null && auth.isEmailVerified());
|
||||||
onJoinVerifier.checkKickNonRegistered(isAuthAvailable);
|
onJoinVerifier.checkKickNonRegistered(isAuthAvailable);
|
||||||
onJoinVerifier.checkKickNotVerified(isAuthAvailable);
|
onJoinVerifier.checkKickNotVerified(isAuthAvailable);
|
||||||
onJoinVerifier.checkAntibot(name, isAuthAvailable);
|
onJoinVerifier.checkAntibot(name, isAuthAvailable);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user