diff options
author | Necrodoom <doomed.war@gmail.com> | 2013-01-30 18:47:19 +0200 |
---|---|---|
committer | Necrodoom <doomed.war@gmail.com> | 2013-01-30 18:47:19 +0200 |
commit | 623ff0f6290d6cc518a9a7dcb7f301dea7e4364f (patch) | |
tree | 67cea94f87d45a4eb5565ed06b928a4af795c876 /EssentialsGroupManager/src/org | |
parent | 6e4ba4302f805ed55f9d92f52bcaf7614b2b0376 (diff) | |
download | Essentials-623ff0f6290d6cc518a9a7dcb7f301dea7e4364f.tar Essentials-623ff0f6290d6cc518a9a7dcb7f301dea7e4364f.tar.gz Essentials-623ff0f6290d6cc518a9a7dcb7f301dea7e4364f.tar.lz Essentials-623ff0f6290d6cc518a9a7dcb7f301dea7e4364f.tar.xz Essentials-623ff0f6290d6cc518a9a7dcb7f301dea7e4364f.zip |
register new config setting
Diffstat (limited to 'EssentialsGroupManager/src/org')
-rw-r--r-- | EssentialsGroupManager/src/org/anjocaido/groupmanager/GMConfiguration.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GMConfiguration.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GMConfiguration.java index 4fcd0a554..e5a24258e 100644 --- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GMConfiguration.java +++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GMConfiguration.java @@ -22,6 +22,7 @@ import org.yaml.snakeyaml.reader.UnicodeReader; */ public class GMConfiguration { + private boolean allowCommandBlocks = false; private boolean opOverride = true; private boolean toggleValidate = true; private Integer saveInterval = 10; @@ -40,6 +41,7 @@ public class GMConfiguration { /* * Set defaults */ + allowCommandBlocks = false; opOverride = true; toggleValidate = true; saveInterval = 10; @@ -83,6 +85,7 @@ public class GMConfiguration { try { Map<String, Object> config = getElement("config", getElement("settings", GMconfig)); + allowCommandBlocks = (Boolean) config.get("allow_commandblocks"); opOverride = (Boolean) config.get("opOverrides"); toggleValidate = (Boolean) config.get("validate_toggle"); @@ -142,6 +145,10 @@ public class GMConfiguration { return (Map<String, Object>) map.get(element); } + public boolean isAllowCommandBlocks() { + + return allowCommandBlocks; + } public boolean isOpOverride() { @@ -183,4 +190,4 @@ public class GMConfiguration { } -}
\ No newline at end of file +} |