Added emailverified locale and config

This commit is contained in:
Deichor 2024-12-10 02:53:29 +03:00
parent 80f0f31ca1
commit 96234181e8
3 changed files with 8 additions and 0 deletions

View File

@ -122,6 +122,9 @@ public enum MessageKey {
/** Only registered users can join the server! Please visit http://example.com to register yourself! */
MUST_REGISTER_MESSAGE("registration.reg_only"),
/** Only users with verified email addresses can access this feature! Please check your inbox to verify your email! */
MUST_VERIFIED_MESSAGE("email.verified_kick"),
/** You're already logged in! */
ALREADY_LOGGED_IN_ERROR("error.logged_in"),

View File

@ -100,6 +100,10 @@ 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 be kicked on wrong password?")
public static final Property<Boolean> KICK_ON_WRONG_PASSWORD =
newProperty("settings.restrictions.kickOnWrongPassword", false);

View File

@ -103,6 +103,7 @@ email:
send_failure: 'The email could not be sent. Please contact an administrator.'
change_password_expired: 'You cannot change your password using this command anymore.'
email_cooldown_error: '&cAn email was already sent recently. You must wait %time before you can send a new one.'
verified_kick: "&cOnly users with verified email addresses can access this feature! Please check your inbox to verify your email!"
# Password recovery by email
recovery: