diff options
author | ElgarL <ElgarL@palmergames.com> | 2013-02-26 08:49:40 -0800 |
---|---|---|
committer | ElgarL <ElgarL@palmergames.com> | 2013-02-26 08:49:40 -0800 |
commit | f5ed4dd6cd3b1df834d8b7bdaf3b143ee5a3fe24 (patch) | |
tree | 8e895a068d57a0091b730f3547f0f5d165542091 /EssentialsGroupManager | |
parent | 17dab04094d5aed4d429db875ac60804810dc1f5 (diff) | |
parent | 9965e415678ba5cd07103e126b67ce2c0f090156 (diff) | |
download | Essentials-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.java | 14 |
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. |