mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-12-03 15:43:35 +01:00
Need to check if forceRegstration is enabled
This commit is contained in:
parent
176fda47ec
commit
2fe76a4f8a
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user