1
0
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:
ElgarL
2011-10-31 20:41:50 +00:00
parent 1fd02b8a4a
commit 97cae6c0cb
4 changed files with 26 additions and 1 deletions

View File

@@ -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