forked from TuxCoding/FastLogin
Fixed 'allowFloodgateNameConflict' for 'false' value.
This commit is contained in:
@ -39,7 +39,9 @@ public class FloodgateAuthTask implements Runnable {
|
|||||||
player.kickPlayer("This name is allready in use by a Premium Java Player");
|
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(
|
plugin.getLog().error(
|
||||||
"Invalid value detected for 'allowFloodgateNameConflict' in FasttLogin/config.yml. Aborting login of Player {}",
|
"Invalid value detected for 'allowFloodgateNameConflict' in FasttLogin/config.yml. Aborting login of Player {}",
|
||||||
player.getName());
|
player.getName());
|
||||||
|
@ -197,8 +197,8 @@ autoLogin: true
|
|||||||
# !!! DO NOT REMOVE THE APOSTROPHE !!!
|
# !!! DO NOT REMOVE THE APOSTROPHE !!!
|
||||||
autoLoginFloodgate: 'false'
|
autoLoginFloodgate: 'false'
|
||||||
|
|
||||||
# This enables Floodgate players to join the server, even if autoRegister is true and there's an existing Java Premium
|
# This enables Floodgate players to join the server, even if autoRegister is true and there's an existing
|
||||||
# account with the same name
|
# Java **PREMIUM** account with the same name
|
||||||
# Possible values:
|
# Possible values:
|
||||||
# false: Check for Premium Java name conflicts as described in 'autoRegister'
|
# false: Check for Premium Java name conflicts as described in 'autoRegister'
|
||||||
# 'autoRegister' must be 'true' for this to work
|
# 'autoRegister' must be 'true' for this to work
|
||||||
|
Reference in New Issue
Block a user