2013-04-10 12:52:22 +02:00
|
|
|
package com.massivecraft.factions;
|
|
|
|
|
|
|
|
import java.util.Set;
|
|
|
|
|
|
|
|
import org.bukkit.Material;
|
|
|
|
import org.bukkit.entity.EntityType;
|
|
|
|
|
|
|
|
import com.massivecraft.mcore.util.MUtil;
|
|
|
|
|
|
|
|
public class Const
|
|
|
|
{
|
2013-04-11 07:04:45 +02:00
|
|
|
// MStore Collection Names
|
|
|
|
public static final String COLLECTION_BASENAME = "factions";
|
|
|
|
public static final String COLLECTION_BASENAME_ = COLLECTION_BASENAME+"_";
|
2013-04-22 09:37:53 +02:00
|
|
|
public static final String COLLECTION_BASENAME_MCONF = COLLECTION_BASENAME_+"mconf";
|
|
|
|
public static final String COLLECTION_BASENAME_UCONF = COLLECTION_BASENAME_+"uconf";
|
2013-04-11 07:04:45 +02:00
|
|
|
public static final String COLLECTION_BASENAME_BOARD = COLLECTION_BASENAME_+"board";
|
|
|
|
public static final String COLLECTION_BASENAME_PLAYER = COLLECTION_BASENAME_+"player";
|
|
|
|
public static final String COLLECTION_BASENAME_FACTION = COLLECTION_BASENAME_+"faction";
|
|
|
|
|
2013-04-22 12:26:13 +02:00
|
|
|
// Aspect Ids
|
|
|
|
|
|
|
|
public static final String ASPECT_ID = "factions";
|
|
|
|
|
2013-04-12 09:47:43 +02:00
|
|
|
// Defautlt faction ids
|
|
|
|
public static final String FACTIONID_NONE = "0";
|
|
|
|
public static final String FACTIONID_SAFEZONE = "-1";
|
|
|
|
public static final String FACTIONID_WARZONE = "-2";
|
2013-04-11 07:04:45 +02:00
|
|
|
|
2013-04-12 09:47:43 +02:00
|
|
|
// ASCII Map
|
2013-04-10 12:52:22 +02:00
|
|
|
public static final int MAP_HEIGHT = 8;
|
|
|
|
public static final int MAP_WIDTH = 39;
|
|
|
|
public static final char[] MAP_KEY_CHARS = "\\/#?$%=&^ABCDEFGHJKLMNOPQRSTUVWXYZ1234567890abcdeghjmnopqrsuvwxyz".toCharArray();
|
|
|
|
|
2013-04-11 07:04:45 +02:00
|
|
|
// Enumerations
|
2013-04-18 17:12:46 +02:00
|
|
|
|
2013-04-10 12:52:22 +02:00
|
|
|
public static final Set<Material> MATERIALS_EDIT_ON_INTERACT = MUtil.set(
|
|
|
|
Material.DIODE_BLOCK_OFF,
|
|
|
|
Material.DIODE_BLOCK_ON,
|
|
|
|
Material.NOTE_BLOCK,
|
|
|
|
Material.CAULDRON,
|
|
|
|
Material.SOIL
|
|
|
|
);
|
|
|
|
|
|
|
|
public static final Set<Material> MATERIALS_EDIT_TOOLS = MUtil.set(
|
|
|
|
Material.FIREBALL,
|
|
|
|
Material.FLINT_AND_STEEL,
|
|
|
|
Material.BUCKET,
|
|
|
|
Material.WATER_BUCKET,
|
|
|
|
Material.LAVA_BUCKET
|
|
|
|
);
|
|
|
|
|
|
|
|
public static final Set<Material> MATERIALS_DOOR = MUtil.set(
|
|
|
|
Material.WOODEN_DOOR,
|
|
|
|
Material.TRAP_DOOR,
|
|
|
|
Material.FENCE_GATE
|
|
|
|
);
|
|
|
|
|
|
|
|
public static final Set<Material> MATERIALS_CONTAINER = MUtil.set(
|
|
|
|
Material.DISPENSER,
|
|
|
|
Material.CHEST,
|
|
|
|
Material.FURNACE,
|
|
|
|
Material.BURNING_FURNACE,
|
|
|
|
Material.JUKEBOX,
|
|
|
|
Material.BREWING_STAND,
|
|
|
|
Material.ENCHANTMENT_TABLE,
|
|
|
|
Material.ANVIL,
|
|
|
|
Material.BEACON
|
|
|
|
);
|
|
|
|
|
|
|
|
//public static Set<Material> territoryProtectedMaterialsWhenOffline = EnumSet.noneOf(Material.class);
|
|
|
|
//public static Set<Material> territoryDenyUseageMaterialsWhenOffline = EnumSet.noneOf(Material.class);
|
|
|
|
|
|
|
|
public static final Set<EntityType> ENTITY_TYPES_MONSTERS = MUtil.set(
|
|
|
|
EntityType.BLAZE,
|
|
|
|
EntityType.CAVE_SPIDER,
|
|
|
|
EntityType.CREEPER,
|
|
|
|
EntityType.ENDERMAN,
|
|
|
|
EntityType.ENDER_DRAGON,
|
|
|
|
EntityType.GHAST,
|
|
|
|
EntityType.GIANT,
|
|
|
|
EntityType.MAGMA_CUBE,
|
|
|
|
EntityType.PIG_ZOMBIE,
|
|
|
|
EntityType.SILVERFISH,
|
|
|
|
EntityType.SKELETON,
|
|
|
|
EntityType.SLIME,
|
|
|
|
EntityType.SPIDER,
|
|
|
|
EntityType.WITCH,
|
|
|
|
EntityType.WITHER,
|
|
|
|
EntityType.ZOMBIE
|
|
|
|
);
|
|
|
|
}
|