mirror of
https://github.com/TuxCoding/FastLogin.git
synced 2025-07-31 19:24:47 +02:00
Add 'no-conflict' as an option to config.yml value checking
This commit is contained in:
@@ -256,6 +256,7 @@ public class FastLoginBukkit extends JavaPlugin implements PlatformPlugin<Comman
|
|||||||
* <ul>
|
* <ul>
|
||||||
* <li>allowFloodgateNameConflict
|
* <li>allowFloodgateNameConflict
|
||||||
* <li>autoLoginFloodgate
|
* <li>autoLoginFloodgate
|
||||||
|
* <li>autoRegisterFloodgate
|
||||||
* </ul>
|
* </ul>
|
||||||
* </p>
|
* </p>
|
||||||
*
|
*
|
||||||
@@ -264,7 +265,7 @@ public class FastLoginBukkit extends JavaPlugin implements PlatformPlugin<Comman
|
|||||||
*/
|
*/
|
||||||
private boolean isValidFloodgateConfigString(String key) {
|
private boolean isValidFloodgateConfigString(String key) {
|
||||||
String value = core.getConfig().get(key).toString().toLowerCase();
|
String value = core.getConfig().get(key).toString().toLowerCase();
|
||||||
if (!value.equals("true") && !value.equals("linked") && !value.equals("false")) {
|
if (!value.equals("true") && !value.equals("linked") && !value.equals("false") && !value.equals("no-conflict")) {
|
||||||
logger.error("Invalid value detected for {} in FastLogin/config.yml.", key);
|
logger.error("Invalid value detected for {} in FastLogin/config.yml.", key);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user