summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNecrodoom <doomed.war@gmail.com>2013-02-26 12:17:26 +0200
committerNecrodoom <doomed.war@gmail.com>2013-02-26 12:17:26 +0200
commit9965e415678ba5cd07103e126b67ce2c0f090156 (patch)
tree11a052e79b8402418be6c75f3b5ce2f822fd6777
parentc1b4ed59208dbb5717f498dc80c1a8789b8101f2 (diff)
downloadEssentials-9965e415678ba5cd07103e126b67ce2c0f090156.tar
Essentials-9965e415678ba5cd07103e126b67ce2c0f090156.tar.gz
Essentials-9965e415678ba5cd07103e126b67ce2c0f090156.tar.lz
Essentials-9965e415678ba5cd07103e126b67ce2c0f090156.tar.xz
Essentials-9965e415678ba5cd07103e126b67ce2c0f090156.zip
add catches for the last 2 config settings
-rw-r--r--EssentialsGroupManager/src/org/anjocaido/groupmanager/GMConfiguration.java14
1 files changed, 11 insertions, 3 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GMConfiguration.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GMConfiguration.java
index 2f68b6d7d..fbf8109f6 100644
--- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GMConfiguration.java
+++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GMConfiguration.java
@@ -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.