diff options
author | Petr Ilin <hevav@hevav.dev> | 2022-07-12 16:04:22 +0300 |
---|---|---|
committer | Petr Ilin <hevav@hevav.dev> | 2022-07-12 16:04:22 +0300 |
commit | b0b208b02f629eaaeabc6a380349a64adb642d45 (patch) | |
tree | 57a9a5004b9fb37907a8a694f062afb09de0ac97 /src/main/java/net/elytrium/limboauth/Settings.java | |
parent | 19c4bb18b0faca802360c050d02f0abfd7ca0059 (diff) | |
download | LimboAuth-b0b208b02f629eaaeabc6a380349a64adb642d45.tar.gz LimboAuth-b0b208b02f629eaaeabc6a380349a64adb642d45.tar.bz2 LimboAuth-b0b208b02f629eaaeabc6a380349a64adb642d45.zip |
"Disable registrations" feature
Diffstat (limited to 'src/main/java/net/elytrium/limboauth/Settings.java')
-rw-r--r-- | src/main/java/net/elytrium/limboauth/Settings.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/net/elytrium/limboauth/Settings.java b/src/main/java/net/elytrium/limboauth/Settings.java index 7a1a29c..a777f5d 100644 --- a/src/main/java/net/elytrium/limboauth/Settings.java +++ b/src/main/java/net/elytrium/limboauth/Settings.java @@ -156,6 +156,9 @@ public class Settings extends YamlConfig { public List<String> LOGIN_COMMAND = List.of("/l", "/log", "/login"); public List<String> TOTP_COMMAND = List.of("/2fa", "/totp"); + @Comment("New players will be kicked with registrations-disabled-kick message") + public boolean DISABLE_REGISTRATIONS = false; + @Create public Settings.MAIN.WORLD_COORDS WORLD_COORDS; @@ -289,6 +292,8 @@ public class Settings extends YamlConfig { public String FORCE_UNREGISTER_NOT_SUCCESSFUL = "{PRFX} &cUnable to unregister &6{0}&c. Most likely this player has never been on this server."; public String FORCE_UNREGISTER_USAGE = "{PRFX} Usage: &6/forceunregister <nickname>"; + public String REGISTRATIONS_DISABLED_KICK = "{PRFX} Registrations are currently disabled."; + public String CHANGE_PASSWORD_SUCCESSFUL = "{PRFX} &aSuccessfully changed password!"; @Comment("Or if change-password-need-old-pass set to false remove the \"<old password>\" part.") public String CHANGE_PASSWORD_USAGE = "{PRFX} Usage: &6/changepassword <old password> <new password>"; |