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:
parent
a815fb90e7
commit
df8c33796d
@ -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?
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@ -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 =
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user