Need to check if forceRegstration is enabled

This commit is contained in:
Xephi 2015-05-04 15:59:18 +02:00
parent 176fda47ec
commit 2fe76a4f8a

View File

@ -116,6 +116,12 @@ public class AuthMeEntityListener implements Listener {
if (PlayerCache.getInstance().isAuthenticated(name)) {
return;
}
if (!data.isAuthAvailable(name)) {
if (!Settings.isForcedRegistrationEnabled) {
return;
}
}
event.setCancelled(true);
}