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?
|
# Should unregistered players be kicked immediately?
|
||||||
kickNonRegistered: false
|
kickNonRegistered: false
|
||||||
# Should players without verified email addresses be restricted from accessing the system immediately?
|
# Should players without verified email addresses be restricted from accessing the system immediately?
|
||||||
kickNotVerified: false
|
kickUnVerified: false
|
||||||
# Should players be kicked on wrong password?
|
# Should players be kicked on wrong password?
|
||||||
kickOnWrongPassword: false
|
kickOnWrongPassword: false
|
||||||
# Should not logged in players be teleported to the spawn?
|
# 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
|
* @throws FailedVerificationException if the email verification is not completed
|
||||||
*/
|
*/
|
||||||
public void checkKickNotVerified(boolean isAuthAvailable) throws FailedVerificationException {
|
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);
|
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 =
|
public static final Property<Boolean> KICK_NON_REGISTERED =
|
||||||
newProperty("settings.restrictions.kickNonRegistered", false);
|
newProperty("settings.restrictions.kickNonRegistered", false);
|
||||||
|
|
||||||
@Comment("Should unregistered players be kicked immediately?")
|
@Comment("Should players without verified email addresses be restricted from accessing the system immediately?")
|
||||||
public static final Property<Boolean> KICK_NOT_VERIFIED =
|
public static final Property<Boolean> KICK_UN_VERIFIED =
|
||||||
newProperty("settings.restrictions.kickNotVerified", false);
|
newProperty("settings.restrictions.kickUnVerified", false);
|
||||||
|
|
||||||
@Comment("Should players be kicked on wrong password?")
|
@Comment("Should players be kicked on wrong password?")
|
||||||
public static final Property<Boolean> KICK_ON_WRONG_PASSWORD =
|
public static final Property<Boolean> KICK_ON_WRONG_PASSWORD =
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user