2011-06-06 20:29:08 +00:00
|
|
|
package com.earth2me.essentials.protect;
|
|
|
|
|
|
|
|
|
|
|
|
public enum ProtectConfig
|
|
|
|
{
|
|
|
|
disable_contactdmg("protect.disable.contactdmg", false),
|
|
|
|
disable_lavadmg("protect.disable.lavadmg", false),
|
|
|
|
disable_pvp("protect.disable.pvp", false),
|
|
|
|
disable_projectiles("protect.disable.projectiles", false),
|
|
|
|
disable_fall("protect.disable.fall", false),
|
|
|
|
disable_suffocate("protect.disable.suffocate", false),
|
|
|
|
disable_firedmg("protect.disable.firedmg", false),
|
|
|
|
disable_lightning("protect.disable.lightning", false),
|
|
|
|
disable_drown("protect.disable.drown", false),
|
2012-10-28 13:39:54 +00:00
|
|
|
disable_wither("protect.disable.wither", false),
|
2011-06-06 20:29:08 +00:00
|
|
|
disable_weather_storm("protect.disable.weather.storm", false),
|
|
|
|
disable_weather_lightning("protect.disable.weather.lightning", false),
|
|
|
|
disable_weather_thunder("protect.disable.weather.thunder", false),
|
|
|
|
prevent_fire_spread("protect.prevent.fire-spread", true),
|
|
|
|
prevent_flint_fire("protect.prevent.flint-fire", false),
|
|
|
|
prevent_lava_fire_spread("protect.prevent.lava-fire-spread", true),
|
|
|
|
prevent_lightning_fire_spread("protect.prevent.lightning-fire-spread", true),
|
|
|
|
prevent_water_flow("protect.prevent.water-flow", false),
|
|
|
|
prevent_lava_flow("protect.prevent.lava-flow", false),
|
|
|
|
prevent_water_bucket_flow("protect.prevent.water-bucket-flow", false),
|
|
|
|
prevent_portal_creation("protect.prevent.portal-creation", false),
|
|
|
|
prevent_block_on_rail("protect.protect.prevent-block-on-rails", false),
|
|
|
|
prevent_tnt_explosion("protect.prevent.tnt-explosion", false),
|
2011-07-18 05:22:28 +00:00
|
|
|
prevent_tnt_playerdmg("protect.prevent.tnt-playerdamage", false),
|
2013-03-15 19:41:42 +00:00
|
|
|
prevent_tntminecart_explosion("protect.prevent.tnt-minecart-explosion", false),
|
|
|
|
prevent_tntminecart_playerdmg("protect.prevent.tnt-minecart-playerdamage", false),
|
2011-07-05 23:24:54 +00:00
|
|
|
prevent_fireball_explosion("protect.prevent.fireball-explosion", false),
|
2011-07-18 05:22:28 +00:00
|
|
|
prevent_fireball_fire("protect.prevent.fireball-fire", false),
|
|
|
|
prevent_fireball_playerdmg("protect.prevent.fireball-playerdamage", false),
|
2012-10-28 16:53:12 +00:00
|
|
|
prevent_witherskull_explosion("protect.prevent.witherskull-explosion", false),
|
|
|
|
prevent_witherskull_playerdmg("protect.prevent.witherskull-playerdamage", false),
|
2012-10-28 16:58:01 +00:00
|
|
|
prevent_wither_spawnexplosion("protect.prevent.wither-spawnexplosion", false),
|
2012-10-28 17:09:19 +00:00
|
|
|
prevent_wither_blockreplace("protect.prevent.wither-blockreplace", false),
|
2011-06-06 20:29:08 +00:00
|
|
|
prevent_creeper_explosion("protect.prevent.creeper-explosion", true),
|
|
|
|
prevent_creeper_playerdmg("protect.prevent.creeper-playerdamage", false),
|
|
|
|
prevent_creeper_blockdmg("protect.prevent.creeper-blockdamage", false),
|
2011-09-21 00:30:58 +00:00
|
|
|
prevent_enderman_pickup("protect.prevent.enderman-pickup", false),
|
2011-11-28 05:15:51 +00:00
|
|
|
prevent_villager_death("protect.prevent.villager-death", false),
|
2011-12-07 23:48:53 +00:00
|
|
|
prevent_enderdragon_blockdmg("protect.prevent.enderdragon-blockdamage", true),
|
2011-06-06 20:29:08 +00:00
|
|
|
prevent_entitytarget("protect.prevent.entitytarget", false),
|
2012-08-18 20:19:00 +00:00
|
|
|
enderdragon_fakeexplosions("protect.enderdragon-fakeexplosions", false);
|
2011-06-06 20:29:08 +00:00
|
|
|
private final String configName;
|
|
|
|
private final String defValueString;
|
|
|
|
private final boolean defValueBoolean;
|
|
|
|
private final boolean isList;
|
|
|
|
private final boolean isString;
|
|
|
|
|
|
|
|
private ProtectConfig(final String configName)
|
|
|
|
{
|
|
|
|
this(configName, null, false, true, false);
|
|
|
|
}
|
2011-11-21 01:55:26 +00:00
|
|
|
|
2011-06-06 20:29:08 +00:00
|
|
|
private ProtectConfig(final String configName, final String defValueString)
|
|
|
|
{
|
|
|
|
this(configName, defValueString, false, false, true);
|
|
|
|
}
|
|
|
|
|
|
|
|
private ProtectConfig(final String configName, final boolean defValueBoolean)
|
|
|
|
{
|
|
|
|
this(configName, null, defValueBoolean, false, false);
|
|
|
|
}
|
|
|
|
|
|
|
|
private ProtectConfig(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;
|
|
|
|
}
|
2011-11-21 01:55:26 +00:00
|
|
|
|
2011-06-06 20:29:08 +00:00
|
|
|
public boolean isList()
|
|
|
|
{
|
|
|
|
return isList;
|
|
|
|
}
|
|
|
|
}
|