summaryrefslogtreecommitdiffstats
path: root/EssentialsGroupManager
diff options
context:
space:
mode:
authorElgarL <ElgarL@palmergames.com>2013-02-26 08:49:40 -0800
committerElgarL <ElgarL@palmergames.com>2013-02-26 08:49:40 -0800
commitf5ed4dd6cd3b1df834d8b7bdaf3b143ee5a3fe24 (patch)
tree8e895a068d57a0091b730f3547f0f5d165542091 /EssentialsGroupManager
parent17dab04094d5aed4d429db875ac60804810dc1f5 (diff)
parent9965e415678ba5cd07103e126b67ce2c0f090156 (diff)
downloadEssentials-f5ed4dd6cd3b1df834d8b7bdaf3b143ee5a3fe24.tar
Essentials-f5ed4dd6cd3b1df834d8b7bdaf3b143ee5a3fe24.tar.gz
Essentials-f5ed4dd6cd3b1df834d8b7bdaf3b143ee5a3fe24.tar.lz
Essentials-f5ed4dd6cd3b1df834d8b7bdaf3b143ee5a3fe24.tar.xz
Essentials-f5ed4dd6cd3b1df834d8b7bdaf3b143ee5a3fe24.zip
Merge pull request #361 from necrodoom/patch-66
add catches for the last 2 config settings
Diffstat (limited to 'EssentialsGroupManager')
-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.