From 413c2a39d75158e55effab7ab64e9c3a03b3b069 Mon Sep 17 00:00:00 2001 From: HaHaWTH Date: Sat, 11 Nov 2023 20:45:27 +0800 Subject: [PATCH] Add tips --- src/main/java/fr/xephi/authme/AuthMe.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/fr/xephi/authme/AuthMe.java b/src/main/java/fr/xephi/authme/AuthMe.java index 28a1f201..e5e33eff 100644 --- a/src/main/java/fr/xephi/authme/AuthMe.java +++ b/src/main/java/fr/xephi/authme/AuthMe.java @@ -354,6 +354,8 @@ public class AuthMe extends JavaPlugin { } if (settings.getProperty(SecuritySettings.FORCE_LOGIN_BEDROCK) && settings.getProperty(HooksSettings.HOOK_FLOODGATE_PLAYER) && getServer().getPluginManager().getPlugin("floodgate") != null) { pluginManager.registerEvents(injector.getSingleton(BedrockAutoLoginListener.class), this); + } else if (settings.getProperty(SecuritySettings.FORCE_LOGIN_BEDROCK) && (!settings.getProperty(HooksSettings.HOOK_FLOODGATE_PLAYER) || getServer().getPluginManager().getPlugin("floodgate") == null)) { + logger.warning("Failed to enable BedrockAutoLogin, make sure hookFloodgate is true and floodgate is loaded."); } if (settings.getProperty(SecuritySettings.LOGIN_LOC_FIX_SUB_UNDERGROUND) || settings.getProperty(SecuritySettings.LOGIN_LOC_FIX_SUB_PORTAL)) { pluginManager.registerEvents(injector.getSingleton(LoginLocationFixListener.class), this);