diff --git a/docs/config.md b/docs/config.md index 7d8c7123..01a55e6b 100644 --- a/docs/config.md +++ b/docs/config.md @@ -283,7 +283,7 @@ settings: # Should unregistered players be kicked immediately? kickNonRegistered: false # Should players without verified email addresses be restricted from accessing the system immediately? - kickNotVerified: false + kickUnVerified: false # Should players be kicked on wrong password? kickOnWrongPassword: false # Should not logged in players be teleported to the spawn? diff --git a/src/main/java/fr/xephi/authme/listener/OnJoinVerifier.java b/src/main/java/fr/xephi/authme/listener/OnJoinVerifier.java index 3a7f9a50..6fa19a71 100644 --- a/src/main/java/fr/xephi/authme/listener/OnJoinVerifier.java +++ b/src/main/java/fr/xephi/authme/listener/OnJoinVerifier.java @@ -101,7 +101,7 @@ public class OnJoinVerifier implements Reloadable { * @throws FailedVerificationException if the email verification is not completed */ public void checkKickNotVerified(boolean isAuthAvailable) throws FailedVerificationException { - if (!isAuthAvailable && settings.getProperty(RestrictionSettings.KICK_NOT_VERIFIED)) { + if (!isAuthAvailable && settings.getProperty(RestrictionSettings.KICK_UN_VERIFIED)) { throw new FailedVerificationException(MessageKey.MUST_VERIFIED_MESSAGE); } } diff --git a/src/main/java/fr/xephi/authme/settings/properties/RestrictionSettings.java b/src/main/java/fr/xephi/authme/settings/properties/RestrictionSettings.java index 10120dd6..995926ea 100644 --- a/src/main/java/fr/xephi/authme/settings/properties/RestrictionSettings.java +++ b/src/main/java/fr/xephi/authme/settings/properties/RestrictionSettings.java @@ -100,9 +100,9 @@ public final class RestrictionSettings implements SettingsHolder { public static final Property KICK_NON_REGISTERED = newProperty("settings.restrictions.kickNonRegistered", false); - @Comment("Should unregistered players be kicked immediately?") - public static final Property KICK_NOT_VERIFIED = - newProperty("settings.restrictions.kickNotVerified", false); + @Comment("Should players without verified email addresses be restricted from accessing the system immediately?") + public static final Property KICK_UN_VERIFIED = + newProperty("settings.restrictions.kickUnVerified", false); @Comment("Should players be kicked on wrong password?") public static final Property KICK_ON_WRONG_PASSWORD =