From 1d9e1cb033286b630f3ba65d7cc5dd7a6c764442 Mon Sep 17 00:00:00 2001 From: HaHaWTH Date: Fri, 1 Dec 2023 23:00:38 +0800 Subject: [PATCH] CHANGES: Migrate config path --- src/main/java/fr/xephi/authme/AuthMe.java | 2 +- .../authme/settings/properties/SecuritySettings.java | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/fr/xephi/authme/AuthMe.java b/src/main/java/fr/xephi/authme/AuthMe.java index 667d676e..5f1a700c 100644 --- a/src/main/java/fr/xephi/authme/AuthMe.java +++ b/src/main/java/fr/xephi/authme/AuthMe.java @@ -449,7 +449,7 @@ public class AuthMe extends JavaPlugin { private void checkServerType() { if (isClassLoaded("com.destroystokyo.paper.PaperConfig")) { logger.info("AuthMeReReloaded is running on Paper"); - }else if (isClassLoaded("catserver.server.CatServerConfig")) { + } else if (isClassLoaded("catserver.server.CatServerConfig")) { logger.info("AuthMeReReloaded is running on CatServer"); } else if (isClassLoaded("org.spigotmc.SpigotConfig")) { logger.info("AuthMeReReloaded is running on Spigot"); diff --git a/src/main/java/fr/xephi/authme/settings/properties/SecuritySettings.java b/src/main/java/fr/xephi/authme/settings/properties/SecuritySettings.java index 92eed4b4..505cc347 100644 --- a/src/main/java/fr/xephi/authme/settings/properties/SecuritySettings.java +++ b/src/main/java/fr/xephi/authme/settings/properties/SecuritySettings.java @@ -24,7 +24,7 @@ public final class SecuritySettings implements SettingsHolder { @Comment({"Should send GUI captcha by country code whitelist?", "If the country of the player is in this list, the captcha won't be sent."}) public static final Property> GUI_CAPTCHA_COUNTRY_WHITELIST = - newListProperty("3rdPartyFeature.captcha.whiteList"); + newListProperty("3rdPartyFeature.features.captcha.whiteList"); @Comment({"Should we let Bedrock players login automatically?", "(Requires hookFloodgate to be true & floodgate loaded)"}) @@ -38,21 +38,21 @@ public final class SecuritySettings implements SettingsHolder { public static final Property SMART_ASYNC_TELEPORT = newProperty("3rdPartyFeature.optimizes.smartAsyncTeleport", false); @Comment("Send a GUI captcha to unregistered players?(Requires ProtocolLib)") - public static final Property GUI_CAPTCHA = newProperty("3rdPartyFeature.captcha.guiCaptcha", false); + public static final Property GUI_CAPTCHA = newProperty("3rdPartyFeature.features.captcha.guiCaptcha", false); @Comment({"Should we kick the players when they don't finish the GUI captcha in seconds?", "(less than or equals 0 is disabled)"}) - public static final Property GUI_CAPTCHA_TIMEOUT = newProperty("3rdPartyFeature.captcha.timeOut",0); + public static final Property GUI_CAPTCHA_TIMEOUT = newProperty("3rdPartyFeature.features.captcha.timeOut", 0); @Comment({"Should we ignore floodgate players when sending GUI captcha?", "(Requires floodgate and hookFloodgate: true)"}) - public static final Property GUI_CAPTCHA_BE_COMPATIBILITY = newProperty("3rdPartyFeature.captcha.ignoreBedrock",false); + public static final Property GUI_CAPTCHA_BE_COMPATIBILITY = newProperty("3rdPartyFeature.features.captcha.ignoreBedrock", false); @Comment("Should we delete player data and stats when they didn't finish the captcha?") - public static final Property DELETE_UNVERIFIED_PLAYER_DATA = newProperty("3rdPartyFeature.captcha.purgePlayerData",false); + public static final Property DELETE_UNVERIFIED_PLAYER_DATA = newProperty("3rdPartyFeature.features.captcha.purgePlayerData", false); @Comment("Which world's player data should be deleted?(Enter the world *FOLDER* name where your players first logged in)") - public static final Property DELETE_PLAYER_DATA_WORLD = newProperty("3rdPartyFeature.captcha.purgeWorldFolderName","world"); + public static final Property DELETE_PLAYER_DATA_WORLD = newProperty("3rdPartyFeature.features.captcha.purgeWorldFolderName", "world"); @Comment("Should we fix the location when players logged in the portal?") public static final Property LOGIN_LOC_FIX_SUB_PORTAL = newProperty("3rdPartyFeature.fixes.loginLocationFix.fixPortalStuck", false);