mirror of
https://github.com/essentials/Essentials.git
synced 2025-10-03 17:41:57 +02:00
Added a config.yml setting of 'validate_toggle' for those who prefer
'mantogglevalidate' to always be off.
This commit is contained in:
@@ -48,7 +48,10 @@ public class GMConfiguration {
|
||||
} catch (Exception ex) {
|
||||
throw new IllegalArgumentException("The following file couldn't pass on Parser.\n" + configFile.getPath(), ex);
|
||||
}
|
||||
|
||||
// Setup defaults
|
||||
adjustLoggerLevel();
|
||||
plugin.setValidateOnlinePlayer(isToggleValidate());
|
||||
}
|
||||
|
||||
public boolean isOpOverride() {
|
||||
@@ -57,6 +60,9 @@ public class GMConfiguration {
|
||||
public boolean isBukkitPermsOverride() {
|
||||
return GMconfig.getBoolean("settings.config.bukkit_perms_override", false);
|
||||
}
|
||||
public boolean isToggleValidate() {
|
||||
return GMconfig.getBoolean("settings.config.validate_toggle", true);
|
||||
}
|
||||
|
||||
public Map<String, Object> getMirrorsMap() {
|
||||
// Try to fetch the old mirror path first
|
||||
|
Reference in New Issue
Block a user