diff options
author | KHobbits <rob@khobbits.co.uk> | 2012-08-19 23:41:28 +0100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2012-08-19 23:41:28 +0100 |
commit | 1bc0b8a97dae9893d8de64b78bb8916cdaa5adbe (patch) | |
tree | 266de57d0d9c2213f4150f88a0345eb56fab68f5 /EssentialsAntiBuild/src/com/earth2me/essentials/antibuild/AntiBuildConfig.java | |
parent | 2c965ce9aee030fcc94e564506ffd592a4ac0346 (diff) | |
parent | f0f37a16714123694e7cc6f7de07161c6ccd71a2 (diff) | |
download | Essentials-1bc0b8a97dae9893d8de64b78bb8916cdaa5adbe.tar Essentials-1bc0b8a97dae9893d8de64b78bb8916cdaa5adbe.tar.gz Essentials-1bc0b8a97dae9893d8de64b78bb8916cdaa5adbe.tar.lz Essentials-1bc0b8a97dae9893d8de64b78bb8916cdaa5adbe.tar.xz Essentials-1bc0b8a97dae9893d8de64b78bb8916cdaa5adbe.zip |
Merge branch 'antibuild' into 2.9
Diffstat (limited to 'EssentialsAntiBuild/src/com/earth2me/essentials/antibuild/AntiBuildConfig.java')
-rw-r--r-- | EssentialsAntiBuild/src/com/earth2me/essentials/antibuild/AntiBuildConfig.java | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/EssentialsAntiBuild/src/com/earth2me/essentials/antibuild/AntiBuildConfig.java b/EssentialsAntiBuild/src/com/earth2me/essentials/antibuild/AntiBuildConfig.java new file mode 100644 index 000000000..1aa33d02a --- /dev/null +++ b/EssentialsAntiBuild/src/com/earth2me/essentials/antibuild/AntiBuildConfig.java @@ -0,0 +1,73 @@ +package com.earth2me.essentials.antibuild; + + +public enum AntiBuildConfig +{ + disable_build("protect.disable.build", true), + disable_use("protect.disable.use", true), + alert_on_placement("protect.alert.on-placement"), + alert_on_use("protect.alert.on-use"), + alert_on_break("protect.alert.on-break"), + blacklist_placement("protect.blacklist.placement"), + blacklist_usage("protect.blacklist.usage"), + blacklist_break("protect.blacklist.break"), + blacklist_piston("protect.blacklist.piston"); + private final String configName; + private final String defValueString; + private final boolean defValueBoolean; + private final boolean isList; + private final boolean isString; + + private AntiBuildConfig(final String configName) + { + this(configName, null, false, true, false); + } + + private AntiBuildConfig(final String configName, final boolean defValueBoolean) + { + this(configName, null, defValueBoolean, false, false); + } + + private AntiBuildConfig(final String configName, final String defValueString, final boolean defValueBoolean, final boolean isList, final boolean isString) + { + this.configName = configName; + this.defValueString = defValueString; + this.defValueBoolean = defValueBoolean; + this.isList = isList; + this.isString = isString; + } + + /** + * @return the configName + */ + public String getConfigName() + { + return configName; + } + + /** + * @return the default value String + */ + public String getDefaultValueString() + { + return defValueString; + } + + /** + * @return the default value boolean + */ + public boolean getDefaultValueBoolean() + { + return defValueBoolean; + } + + public boolean isString() + { + return isString; + } + + public boolean isList() + { + return isList; + } +} |