Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static final ItemStack EMPTY_ITEM;
- public static final ItemStack CUBETOWN_ITEM;
- public static final ItemStack MINIGAMES_ITEM;
- public static final ItemStack HUNGERGAMES_ITEM;
- public static final ItemStack PAINTBALL_ITEM;
- public static final ItemStack[] MENU_ITEMS;
- static {
- EMPTY_ITEM = new ItemStack(Material.AIR);
- ItemMeta meta;
- ArrayList<String> lore;
- {
- CUBETOWN_ITEM = new ItemStack(Material.EMERALD);
- meta = CUBETOWN_ITEM.getItemMeta();
- meta.setDisplayName(ChatColor.LIGHT_PURPLE + "Coming Soon!");
- lore = new ArrayList<String>();
- lore.add("§8Coming Soon. Very Soon!");
- meta.setLore(lore);
- CUBETOWN_ITEM.setItemMeta(meta);
- }
- {
- MINIGAMES_ITEM = new ItemStack(Material.IRON_SWORD);
- meta = MINIGAMES_ITEM.getItemMeta();
- meta.setDisplayName(ChatColor.AQUA + "Mini Games");
- lore = new ArrayList<String>();
- lore.add("§8Klicke, um §3zu den MiniGames zu kommen!");
- meta.setLore(lore);
- MINIGAMES_ITEM.setItemMeta(meta);
- }
- {
- HUNGERGAMES_ITEM = new ItemStack(Material.BOW);
- meta = HUNGERGAMES_ITEM.getItemMeta();
- meta.setDisplayName(ChatColor.GOLD + "Kit HungerGames");
- lore = new ArrayList<String>();
- lore.add("§8Klicke, um §3zu den HungerGames Servern zu kommen!");
- meta.setLore(lore);
- HUNGERGAMES_ITEM.setItemMeta(meta);
- }
- {
- PAINTBALL_ITEM = new ItemStack(Material.SNOW_BALL);
- meta = PAINTBALL_ITEM.getItemMeta();
- meta.setDisplayName(ChatColor.GREEN + "Paintball");
- lore = new ArrayList<String>();
- lore.add("§8Klicke, um §3zum Paintball Server zu kommen!");
- meta.setLore(lore);
- PAINTBALL_ITEM.setItemMeta(meta);
- }
- MENU_ITEMS = new ItemStack[] { EMPTY_ITEM, HUNGERGAMES_ITEM, EMPTY_ITEM, PAINTBALL_ITEM, EMPTY_ITEM, MINIGAMES_ITEM, EMPTY_ITEM, CUBETOWN_ITEM };
- }
- public void onEnable() {
- Bukkit.getPluginManager().registerEvents(this, this);
- inv = Bukkit.createInventory(null, 9, "§8TheMineTV Hub");
- inv.setContents(MENU_ITEMS);
- loadConfig();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement