All multiversion materials from conf now work.
This commit is contained in:
parent
075264be94
commit
855d8724eb
@ -345,53 +345,54 @@ public class Conf {
|
|||||||
territoryEnemyDenyCommands.add("tpa");
|
territoryEnemyDenyCommands.add("tpa");
|
||||||
|
|
||||||
|
|
||||||
//territoryProtectedMaterials.add(Material.LEGACY_WOODEN_DOOR);
|
|
||||||
//territoryProtectedMaterials.add(Material.LEGACY_TRAP_DOOR);
|
territoryProtectedMaterials.add(P.p.WOODEN_DOOR);
|
||||||
//territoryProtectedMaterials.add(Material.LEGACY_FENCE_GATE);
|
territoryProtectedMaterials.add(P.p.TRAP_DOOR);
|
||||||
|
territoryProtectedMaterials.add(P.p.FENCE_GATE);
|
||||||
territoryProtectedMaterials.add(Material.DISPENSER);
|
territoryProtectedMaterials.add(Material.DISPENSER);
|
||||||
territoryProtectedMaterials.add(Material.CHEST);
|
territoryProtectedMaterials.add(Material.CHEST);
|
||||||
territoryProtectedMaterials.add(Material.FURNACE);
|
territoryProtectedMaterials.add(Material.FURNACE);
|
||||||
//territoryProtectedMaterials.add(Material.LEGACY_BURNING_FURNACE);
|
territoryProtectedMaterials.add(P.p.BURNING_FURNACE);
|
||||||
//territoryProtectedMaterials.add(Material.LEGACY_DIODE_BLOCK_OFF);
|
territoryProtectedMaterials.add(P.p.DIODE_BLOCK_OFF);
|
||||||
//territoryProtectedMaterials.add(Material.LEGACY_DIODE_BLOCK_ON);
|
territoryProtectedMaterials.add(P.p.DIODE_BLOCK_ON);
|
||||||
territoryProtectedMaterials.add(Material.JUKEBOX);
|
territoryProtectedMaterials.add(Material.JUKEBOX);
|
||||||
territoryProtectedMaterials.add(Material.BREWING_STAND);
|
territoryProtectedMaterials.add(Material.BREWING_STAND);
|
||||||
//territoryProtectedMaterials.add(Material.LEGACY_ENCHANTMENT_TABLE);
|
territoryProtectedMaterials.add(P.p.ENCHANTMENT_TABLE);
|
||||||
territoryProtectedMaterials.add(Material.CAULDRON);
|
territoryProtectedMaterials.add(Material.CAULDRON);
|
||||||
//territoryProtectedMaterials.add(Material.LEGACY_SOIL);
|
territoryProtectedMaterials.add(P.p.ENCHANTMENT_TABLE);
|
||||||
territoryProtectedMaterials.add(Material.BEACON);
|
territoryProtectedMaterials.add(Material.BEACON);
|
||||||
territoryProtectedMaterials.add(Material.ANVIL);
|
territoryProtectedMaterials.add(Material.ANVIL);
|
||||||
territoryProtectedMaterials.add(Material.TRAPPED_CHEST);
|
territoryProtectedMaterials.add(Material.TRAPPED_CHEST);
|
||||||
territoryProtectedMaterials.add(Material.DROPPER);
|
territoryProtectedMaterials.add(Material.DROPPER);
|
||||||
territoryProtectedMaterials.add(Material.HOPPER);
|
territoryProtectedMaterials.add(Material.HOPPER);
|
||||||
|
|
||||||
//territoryDenyUseageMaterials.add(Material.LEGACY_FIREBALL);
|
territoryDenyUseageMaterials.add(P.p.FIREBALL);
|
||||||
territoryDenyUseageMaterials.add(Material.FLINT_AND_STEEL);
|
territoryDenyUseageMaterials.add(Material.FLINT_AND_STEEL);
|
||||||
territoryDenyUseageMaterials.add(Material.BUCKET);
|
territoryDenyUseageMaterials.add(Material.BUCKET);
|
||||||
territoryDenyUseageMaterials.add(Material.WATER_BUCKET);
|
territoryDenyUseageMaterials.add(Material.WATER_BUCKET);
|
||||||
territoryDenyUseageMaterials.add(Material.LAVA_BUCKET);
|
territoryDenyUseageMaterials.add(Material.LAVA_BUCKET);
|
||||||
|
|
||||||
// territoryProtectedMaterialsWhenOffline.add(Material.LEGACY_WOODEN_DOOR);
|
territoryProtectedMaterialsWhenOffline.add(P.p.WOODEN_DOOR);
|
||||||
// territoryProtectedMaterialsWhenOffline.add(Material.LEGACY_TRAP_DOOR);
|
territoryProtectedMaterialsWhenOffline.add(P.p.TRAP_DOOR);
|
||||||
//territoryProtectedMaterialsWhenOffline.add(Material.LEGACY_FENCE_GATE);
|
territoryProtectedMaterialsWhenOffline.add(P.p.FENCE_GATE);
|
||||||
territoryProtectedMaterialsWhenOffline.add(Material.DISPENSER);
|
territoryProtectedMaterialsWhenOffline.add(Material.DISPENSER);
|
||||||
territoryProtectedMaterialsWhenOffline.add(Material.CHEST);
|
territoryProtectedMaterialsWhenOffline.add(Material.CHEST);
|
||||||
territoryProtectedMaterialsWhenOffline.add(Material.FURNACE);
|
territoryProtectedMaterialsWhenOffline.add(Material.FURNACE);
|
||||||
// territoryProtectedMaterialsWhenOffline.add(Material.LEGACY_BURNING_FURNACE);
|
territoryProtectedMaterialsWhenOffline.add(P.p.BURNING_FURNACE);
|
||||||
// territoryProtectedMaterialsWhenOffline.add(Material.LEGACY_DIODE_BLOCK_OFF);
|
territoryProtectedMaterialsWhenOffline.add(P.p.DIODE_BLOCK_OFF);
|
||||||
// territoryProtectedMaterialsWhenOffline.add(Material.LEGACY_DIODE_BLOCK_ON);
|
territoryProtectedMaterialsWhenOffline.add(P.p.DIODE_BLOCK_OFF);
|
||||||
territoryProtectedMaterialsWhenOffline.add(Material.JUKEBOX);
|
territoryProtectedMaterialsWhenOffline.add(Material.JUKEBOX);
|
||||||
territoryProtectedMaterialsWhenOffline.add(Material.BREWING_STAND);
|
territoryProtectedMaterialsWhenOffline.add(Material.BREWING_STAND);
|
||||||
// territoryProtectedMaterialsWhenOffline.add(Material.LEGACY_ENCHANTMENT_TABLE);
|
territoryProtectedMaterialsWhenOffline.add(P.p.ENCHANTMENT_TABLE);
|
||||||
territoryProtectedMaterialsWhenOffline.add(Material.CAULDRON);
|
territoryProtectedMaterialsWhenOffline.add(Material.CAULDRON);
|
||||||
// territoryProtectedMaterialsWhenOffline.add(Material.LEGACY_SOIL);
|
territoryProtectedMaterialsWhenOffline.add(P.p.SOIL);
|
||||||
territoryProtectedMaterialsWhenOffline.add(Material.BEACON);
|
territoryProtectedMaterialsWhenOffline.add(Material.BEACON);
|
||||||
territoryProtectedMaterialsWhenOffline.add(Material.ANVIL);
|
territoryProtectedMaterialsWhenOffline.add(Material.ANVIL);
|
||||||
territoryProtectedMaterialsWhenOffline.add(Material.TRAPPED_CHEST);
|
territoryProtectedMaterialsWhenOffline.add(Material.TRAPPED_CHEST);
|
||||||
territoryProtectedMaterialsWhenOffline.add(Material.DROPPER);
|
territoryProtectedMaterialsWhenOffline.add(Material.DROPPER);
|
||||||
territoryProtectedMaterialsWhenOffline.add(Material.HOPPER);
|
territoryProtectedMaterialsWhenOffline.add(Material.HOPPER);
|
||||||
|
|
||||||
// territoryDenyUseageMaterialsWhenOffline.add(Material.LEGACY_FIREBALL);
|
territoryDenyUseageMaterialsWhenOffline.add(P.p.FIREBALL);
|
||||||
territoryDenyUseageMaterialsWhenOffline.add(Material.FLINT_AND_STEEL);
|
territoryDenyUseageMaterialsWhenOffline.add(Material.FLINT_AND_STEEL);
|
||||||
territoryDenyUseageMaterialsWhenOffline.add(Material.BUCKET);
|
territoryDenyUseageMaterialsWhenOffline.add(Material.BUCKET);
|
||||||
territoryDenyUseageMaterialsWhenOffline.add(Material.WATER_BUCKET);
|
territoryDenyUseageMaterialsWhenOffline.add(Material.WATER_BUCKET);
|
||||||
|
@ -212,20 +212,12 @@ public class P extends MPlugin {
|
|||||||
|
|
||||||
|
|
||||||
//multiversion material fields
|
//multiversion material fields
|
||||||
public Material SUGAR_CANE_BLOCK;
|
public Material SUGAR_CANE_BLOCK, BANNER, CROPS, REDSTONE_LAMP_ON,
|
||||||
public Material BANNER;
|
STAINED_GLASS, STATIONARY_WATER, STAINED_CLAY, WOOD_BUTTON,
|
||||||
public Material CROPS;
|
SOIL, MOB_SPANWER, THIN_GLASS, IRON_FENCE, NETHER_FENCE, FENCE,
|
||||||
public Material REDSTONE_LAMP_ON;
|
WOODEN_DOOR, TRAP_DOOR, FENCE_GATE, BURNING_FURNACE, DIODE_BLOCK_OFF,
|
||||||
public Material STAINED_GLASS;
|
DIODE_BLOCK_ON, ENCHANTMENT_TABLE, FIREBALL;
|
||||||
public Material STATIONARY_WATER;
|
|
||||||
public Material STAINED_CLAY;
|
|
||||||
public Material WOOD_BUTTON;
|
|
||||||
public Material SOIL;
|
|
||||||
public Material MOB_SPANWER;
|
|
||||||
public Material THIN_GLASS;
|
|
||||||
public Material IRON_FENCE;
|
|
||||||
public Material NETHER_FENCE;
|
|
||||||
public Material FENCE;
|
|
||||||
|
|
||||||
private void setupMultiversionMaterials() {
|
private void setupMultiversionMaterials() {
|
||||||
if (mc113) {
|
if (mc113) {
|
||||||
@ -243,6 +235,15 @@ public class P extends MPlugin {
|
|||||||
IRON_FENCE = Material.valueOf("LEGACY_IRON_FENCE");
|
IRON_FENCE = Material.valueOf("LEGACY_IRON_FENCE");
|
||||||
NETHER_FENCE = Material.valueOf("LEGACY_NETHER_FENCE");
|
NETHER_FENCE = Material.valueOf("LEGACY_NETHER_FENCE");
|
||||||
FENCE = Material.valueOf("LEGACY_FENCE");
|
FENCE = Material.valueOf("LEGACY_FENCE");
|
||||||
|
WOODEN_DOOR = Material.valueOf("LEGACY_WOODEN_DOOR");
|
||||||
|
TRAP_DOOR = Material.valueOf("LEGACY_TRAP_DOOR");
|
||||||
|
FENCE_GATE = Material.valueOf("LEGACY_FENCE_GATE");
|
||||||
|
BURNING_FURNACE = Material.valueOf("LEGACY_BURNING_FURNACE");
|
||||||
|
DIODE_BLOCK_OFF = Material.valueOf("LEGACY_DIODE_BLOCK_OFF");
|
||||||
|
DIODE_BLOCK_ON = Material.valueOf("LEGACY_DIODE_BLOCK_ON");
|
||||||
|
ENCHANTMENT_TABLE = Material.valueOf("LEGACY_ENCHANTMENT_TABLE");
|
||||||
|
FIREBALL = Material.valueOf("LEGACY_FIREBALL");
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
BANNER = Material.valueOf("BANNER");
|
BANNER = Material.valueOf("BANNER");
|
||||||
CROPS = Material.valueOf("CROPS");
|
CROPS = Material.valueOf("CROPS");
|
||||||
@ -258,6 +259,14 @@ public class P extends MPlugin {
|
|||||||
IRON_FENCE = Material.valueOf("IRON_FENCE");
|
IRON_FENCE = Material.valueOf("IRON_FENCE");
|
||||||
NETHER_FENCE = Material.valueOf("NETHER_FENCE");
|
NETHER_FENCE = Material.valueOf("NETHER_FENCE");
|
||||||
FENCE = Material.valueOf("FENCE");
|
FENCE = Material.valueOf("FENCE");
|
||||||
|
WOODEN_DOOR = Material.valueOf("WOODEN_DOOR");
|
||||||
|
TRAP_DOOR = Material.valueOf("TRAP_DOOR");
|
||||||
|
FENCE_GATE = Material.valueOf("FENCE_GATE");
|
||||||
|
BURNING_FURNACE = Material.valueOf("BURNING_FURNACE");
|
||||||
|
DIODE_BLOCK_OFF = Material.valueOf("DIODE_BLOCK_OFF");
|
||||||
|
DIODE_BLOCK_ON = Material.valueOf("DIODE_BLOCK_ON");
|
||||||
|
ENCHANTMENT_TABLE = Material.valueOf("ENCHANTMENT_TABLE");
|
||||||
|
FIREBALL = Material.valueOf("FIREBALL");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user