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 2df2305b..6bf5b4bd 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 @@ -49,8 +49,7 @@ public class FloodgateAuthTask extends FloodgateManagement + * The config option 'non-conflicting' is ignored by this function, as name + * conflicts are checked by a different part of the code. + * + * @param configValue the value of either 'autoLoginFloodgate' or + * 'autoRegisterFloodgate' from config.yml * @return true if the Player can be registered automatically */ - private boolean isAutoRegisterAllowed() { - return "true".equals(autoRegisterFloodgate) - || "no-conflict".equals(autoRegisterFloodgate) // this was checked before - || ("linked".equals(autoRegisterFloodgate) && isLinked); + protected boolean isAutoAuthAllowed(String configValue) { + return "true".equals(configValue) + || "no-conflict".equals(configValue) // this was checked before + || ("linked".equals(configValue) && isLinked); } /**