diff options
author | Petr Ilin <hevav@hevav.dev> | 2023-01-03 01:46:54 +0300 |
---|---|---|
committer | Petr Ilin <hevav@hevav.dev> | 2023-01-03 01:46:54 +0300 |
commit | 9c74c5ca301647c125084cdc1ae7529a880b6713 (patch) | |
tree | 45dfa782676cb99491c000b300ef54d66dca4641 /src/main/java/net/elytrium/limboauth/handler | |
parent | 4bb250e8eab82350a0b4f43ea4630e9b4783f39d (diff) | |
download | LimboAuth-9c74c5ca301647c125084cdc1ae7529a880b6713.tar.gz LimboAuth-9c74c5ca301647c125084cdc1ae7529a880b6713.tar.bz2 LimboAuth-9c74c5ca301647c125084cdc1ae7529a880b6713.zip |
Enum in Settings
Diffstat (limited to 'src/main/java/net/elytrium/limboauth/handler')
-rw-r--r-- | src/main/java/net/elytrium/limboauth/handler/AuthSessionHandler.java | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/main/java/net/elytrium/limboauth/handler/AuthSessionHandler.java b/src/main/java/net/elytrium/limboauth/handler/AuthSessionHandler.java index 493e96c..20188eb 100644 --- a/src/main/java/net/elytrium/limboauth/handler/AuthSessionHandler.java +++ b/src/main/java/net/elytrium/limboauth/handler/AuthSessionHandler.java @@ -378,8 +378,8 @@ public class AuthSessionHandler implements LimboSessionHandler { public static void reload() { Serializer serializer = LimboAuth.getSerializer(); - bossbarColor = BossBar.Color.valueOf(Settings.IMP.MAIN.BOSSBAR_COLOR.toUpperCase(Locale.ROOT)); - bossbarOverlay = BossBar.Overlay.valueOf(Settings.IMP.MAIN.BOSSBAR_OVERLAY.toUpperCase(Locale.ROOT)); + bossbarColor = Settings.IMP.MAIN.BOSSBAR_COLOR; + bossbarOverlay = Settings.IMP.MAIN.BOSSBAR_OVERLAY; ipLimitKick = serializer.deserialize(Settings.IMP.MAIN.STRINGS.IP_LIMIT_KICK); databaseErrorKick = serializer.deserialize(Settings.IMP.MAIN.STRINGS.DATABASE_ERROR_KICK); wrongNicknameCaseKick = Settings.IMP.MAIN.STRINGS.WRONG_NICKNAME_CASE_KICK; @@ -447,11 +447,8 @@ public class AuthSessionHandler implements LimboSessionHandler { Settings.IMP.MAIN.CRACKED_TITLE_SETTINGS.toTimes() ); } - if (Settings.IMP.MAIN.MIGRATION_HASH.isEmpty()) { - migrationHash = null; - } else { - migrationHash = MigrationHash.valueOf(Settings.IMP.MAIN.MIGRATION_HASH); - } + + migrationHash = Settings.IMP.MAIN.MIGRATION_HASH; } public static boolean checkPassword(String password, RegisteredPlayer player, Dao<RegisteredPlayer, String> playerDao) { |