mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-09-28 23:57:27 +02:00
9a23f806fe
Gradle is better than Maven, don't @ me. okay but actually it's [faster](https://www.youtube.com/watch?v=atuFSv2bLa8&feature=youtu.be&t=77), compiles and tests in parallel more efficiently, and more epic stuff).
65 lines
1.8 KiB
Java
65 lines
1.8 KiB
Java
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"),
|
|
blacklist_dispenser("protect.blacklist.dispenser");
|
|
private final String configName;
|
|
private final String defValueString;
|
|
private final boolean defValueBoolean;
|
|
private final boolean isList;
|
|
private final boolean isString;
|
|
|
|
AntiBuildConfig(final String configName) {
|
|
this(configName, null, false, true, false);
|
|
}
|
|
|
|
AntiBuildConfig(final String configName, final boolean defValueBoolean) {
|
|
this(configName, null, defValueBoolean, false, false);
|
|
}
|
|
|
|
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;
|
|
}
|
|
}
|