mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-23 01:27:40 +01:00
add catches for the last 2 config settings
This commit is contained in:
parent
c1b4ed5920
commit
9965e41567
@ -87,13 +87,21 @@ public class GMConfiguration {
|
||||
|
||||
try {
|
||||
allowCommandBlocks = (Boolean) config.get("allow_commandblocks");
|
||||
|
||||
} catch (Exception ex) {
|
||||
GroupManager.logger.log(Level.SEVERE, "Missing or corrupt 'allow_commandblocks' node. Using default settings", ex);
|
||||
}
|
||||
|
||||
opOverride = (Boolean) config.get("opOverrides");
|
||||
toggleValidate = (Boolean) config.get("validate_toggle");
|
||||
try {
|
||||
opOverride = (Boolean) config.get("opOverrides");
|
||||
} catch (Exception ex) {
|
||||
GroupManager.logger.log(Level.SEVERE, "Missing or corrupt 'opOverrides' node. Using default settings", ex);
|
||||
}
|
||||
|
||||
try {
|
||||
toggleValidate = (Boolean) config.get("validate_toggle");
|
||||
} catch (Exception ex) {
|
||||
GroupManager.logger.log(Level.SEVERE, "Missing or corrupt 'validate_toggle' node. Using default settings", ex);
|
||||
}
|
||||
|
||||
/*
|
||||
* data node for save/backup timers.
|
||||
|
Loading…
Reference in New Issue
Block a user