The kickNotVerified key has been changed to kickUnVerified. The comment section has been made the same as in config.md.

This commit is contained in:
Deichor 2024-12-10 20:24:08 +03:00
parent a815fb90e7
commit df8c33796d
3 changed files with 5 additions and 5 deletions

View File

@ -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?

View File

@ -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);
}
}

View File

@ -100,9 +100,9 @@ public final class RestrictionSettings implements SettingsHolder {
public static final Property<Boolean> KICK_NON_REGISTERED =
newProperty("settings.restrictions.kickNonRegistered", false);
@Comment("Should unregistered players be kicked immediately?")
public static final Property<Boolean> 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<Boolean> KICK_UN_VERIFIED =
newProperty("settings.restrictions.kickUnVerified", false);
@Comment("Should players be kicked on wrong password?")
public static final Property<Boolean> KICK_ON_WRONG_PASSWORD =