diff --git a/src/main/java/fr/xephi/authme/listener/PlayerListener.java b/src/main/java/fr/xephi/authme/listener/PlayerListener.java index 7ed31ee1..85056448 100644 --- a/src/main/java/fr/xephi/authme/listener/PlayerListener.java +++ b/src/main/java/fr/xephi/authme/listener/PlayerListener.java @@ -119,7 +119,7 @@ public class PlayerListener implements Listener{ if (validationService.isUnrestricted(name)) { return; } - if (settings.getProperty(HooksSettings.HOOK_FLOODGATE_PLAYER)) { + if (settings.getProperty(HooksSettings.HOOK_FLOODGATE_PLAYER) && settings.getProperty(HooksSettings.IGNORE_BEDROCK_NAME_CHECK)) { if (getServer().getPluginManager().getPlugin("floodgate") != null) { if (org.geysermc.floodgate.api.FloodgateApi.getInstance().isFloodgateId(event.getUniqueId())) return; } diff --git a/src/main/java/fr/xephi/authme/settings/properties/HooksSettings.java b/src/main/java/fr/xephi/authme/settings/properties/HooksSettings.java index 30939b70..5d27c052 100644 --- a/src/main/java/fr/xephi/authme/settings/properties/HooksSettings.java +++ b/src/main/java/fr/xephi/authme/settings/properties/HooksSettings.java @@ -19,12 +19,16 @@ public final class HooksSettings implements SettingsHolder { public static final Property BUNGEECORD = newProperty("Hooks.bungeecord", false); - @Comment({"Allow FloodGatePlayer Join Without checkIsValidName()", + @Comment({"Hook into floodgate.", "This must be true if you want to use other bedrock features." }) public static final Property HOOK_FLOODGATE_PLAYER = newProperty("Hooks.floodgate", false); + @Comment("Allow bedrock players join without check isValidName?") + public static final Property IGNORE_BEDROCK_NAME_CHECK = + newProperty("Hooks.ignoreBedrockNameCheck", true); + @Comment("Send player to this BungeeCord server after register/login") public static final Property BUNGEECORD_SERVER =