From f9992f144792723cf23000d8d032bb30833b0730 Mon Sep 17 00:00:00 2001 From: Smart123s <28480228+Smart123s@users.noreply.github.com> Date: Mon, 22 Mar 2021 19:57:13 +0100 Subject: [PATCH] Fixed 'allowFloodgateNameConflict' for 'false' value. --- .../games647/fastlogin/bukkit/task/FloodgateAuthTask.java | 4 +++- core/src/main/resources/config.yml | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/task/FloodgateAuthTask.java b/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/task/FloodgateAuthTask.java index 3d39d252..c20d2ada 100644 --- a/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/task/FloodgateAuthTask.java +++ b/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/task/FloodgateAuthTask.java @@ -39,7 +39,9 @@ public class FloodgateAuthTask implements Runnable { player.kickPlayer("This name is allready in use by a Premium Java Player"); } - if (!allowNameConflict.equalsIgnoreCase("true") && !allowNameConflict.equalsIgnoreCase("linked")) { + if (!allowNameConflict.equalsIgnoreCase("true") + && !allowNameConflict.equalsIgnoreCase("linked") + && !allowNameConflict.equalsIgnoreCase("false")) { plugin.getLog().error( "Invalid value detected for 'allowFloodgateNameConflict' in FasttLogin/config.yml. Aborting login of Player {}", player.getName()); diff --git a/core/src/main/resources/config.yml b/core/src/main/resources/config.yml index 3d0f12eb..dfc8dc65 100644 --- a/core/src/main/resources/config.yml +++ b/core/src/main/resources/config.yml @@ -197,8 +197,8 @@ autoLogin: true # !!! DO NOT REMOVE THE APOSTROPHE !!! autoLoginFloodgate: 'false' -# This enables Floodgate players to join the server, even if autoRegister is true and there's an existing Java Premium -# account with the same name +# This enables Floodgate players to join the server, even if autoRegister is true and there's an existing +# Java **PREMIUM** account with the same name # Possible values: # false: Check for Premium Java name conflicts as described in 'autoRegister' # 'autoRegister' must be 'true' for this to work