Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package me.bronzzze.wardrobe;
- import java.util.ArrayList;
- import java.util.List;
- import org.bukkit.Bukkit;
- import org.bukkit.ChatColor;
- import org.bukkit.Color;
- import org.bukkit.Material;
- import org.bukkit.enchantments.Enchantment;
- import org.bukkit.entity.Player;
- import org.bukkit.inventory.Inventory;
- import org.bukkit.inventory.ItemStack;
- import org.bukkit.inventory.meta.ItemMeta;
- import org.bukkit.inventory.meta.LeatherArmorMeta;
- public class ArmourGUI {
- private ArmourGUI() {
- }
- private static ArmourGUI instance = new ArmourGUI();
- public static ArmourGUI getInstance() {
- return instance;
- }
- Main i = Main.getInstance();
- public void openInventory(Player p) {
- Inventory inv = Bukkit
- .getServer()
- .createInventory(
- null,
- 54,
- ("" + ChatColor.LIGHT_PURPLE + ChatColor.BOLD + "Armour Selector"));
- if (i.getConfig().getBoolean("Enchantments") == true) {
- ItemStack item1 = new ItemStack(Material.LEATHER_HELMET, 1);
- item1.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
- LeatherArmorMeta itemM1 = (LeatherArmorMeta) item1.getItemMeta();
- List<String> l1 = new ArrayList<String>();
- l1.add(ChatColor.GOLD + "Click to Equip!");
- itemM1.setLore(l1);
- itemM1.setDisplayName("" + ChatColor.YELLOW + ChatColor.BOLD
- + "Yellow Helmet");
- itemM1.setColor(Color.YELLOW);
- item1.setItemMeta(itemM1);
- ItemStack item2 = new ItemStack(Material.LEATHER_HELMET, 1);
- item2.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
- LeatherArmorMeta itemM2 = (LeatherArmorMeta) item2.getItemMeta();
- List<String> l2 = new ArrayList<String>();
- l2.add(ChatColor.GOLD + "Click to Equip!");
- itemM2.setLore(l2);
- itemM2.setDisplayName("" + ChatColor.DARK_GRAY + ChatColor.BOLD
- + "Black Helmet");
- itemM2.setColor(Color.BLACK);
- item2.setItemMeta(itemM2);
- ItemStack item3 = new ItemStack(Material.LEATHER_HELMET, 1);
- item3.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
- LeatherArmorMeta itemM3 = (LeatherArmorMeta) item3.getItemMeta();
- List<String> l3 = new ArrayList<String>();
- l3.add(ChatColor.GOLD + "Click to Equip!");
- itemM3.setLore(l3);
- itemM3.setDisplayName("" + ChatColor.BLUE + ChatColor.BOLD
- + "Blue Helmet");
- itemM3.setColor(Color.BLUE);
- item3.setItemMeta(itemM3);
- ItemStack item4 = new ItemStack(Material.LEATHER_HELMET, 1);
- item4.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
- LeatherArmorMeta itemM4 = (LeatherArmorMeta) item4.getItemMeta();
- List<String> l4 = new ArrayList<String>();
- l4.add(ChatColor.GOLD + "Click to Equip!");
- itemM4.setLore(l4);
- itemM4.setDisplayName("" + ChatColor.LIGHT_PURPLE + ChatColor.BOLD
- + "Pink Helmet");
- itemM4.setColor(Color.FUCHSIA);
- item4.setItemMeta(itemM4);
- ItemStack item5 = new ItemStack(Material.LEATHER_HELMET, 1);
- item5.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
- LeatherArmorMeta itemM5 = (LeatherArmorMeta) item5.getItemMeta();
- List<String> l5 = new ArrayList<String>();
- l5.add(ChatColor.GOLD + "Click to Equip!");
- itemM5.setLore(l5);
- itemM5.setDisplayName("" + ChatColor.GRAY + ChatColor.BOLD
- + "Gray Helmet");
- itemM5.setColor(Color.GRAY);
- item5.setItemMeta(itemM5);
- ItemStack item6 = new ItemStack(Material.LEATHER_HELMET, 1);
- item6.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
- LeatherArmorMeta itemM6 = (LeatherArmorMeta) item6.getItemMeta();
- List<String> l6 = new ArrayList<String>();
- l6.add(ChatColor.GOLD + "Click to Equip!");
- itemM6.setLore(l6);
- itemM6.setDisplayName("" + ChatColor.DARK_GREEN + ChatColor.BOLD
- + "Green Helmet");
- itemM6.setColor(Color.GREEN);
- item6.setItemMeta(itemM6);
- ItemStack item7 = new ItemStack(Material.LEATHER_HELMET, 1);
- item7.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
- LeatherArmorMeta itemM7 = (LeatherArmorMeta) item7.getItemMeta();
- List<String> l7 = new ArrayList<String>();
- l7.add(ChatColor.GOLD + "Click to Equip!");
- itemM7.setLore(l7);
- itemM7.setDisplayName("" + ChatColor.DARK_RED + ChatColor.BOLD
- + "Red Helmet");
- itemM7.setColor(Color.RED);
- item7.setItemMeta(itemM7);
- ItemStack item8 = new ItemStack(Material.LEATHER_CHESTPLATE, 1);
- item8.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
- LeatherArmorMeta itemM8 = (LeatherArmorMeta) item8.getItemMeta();
- List<String> l8 = new ArrayList<String>();
- l8.add(ChatColor.GOLD + "Click to Equip!");
- itemM8.setLore(l8);
- itemM8.setDisplayName("" + ChatColor.YELLOW + ChatColor.BOLD
- + "Yellow Tunic");
- itemM8.setColor(Color.YELLOW);
- item8.setItemMeta(itemM8);
- ItemStack item9 = new ItemStack(Material.LEATHER_CHESTPLATE, 1);
- item9.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
- LeatherArmorMeta itemM9 = (LeatherArmorMeta) item9.getItemMeta();
- List<String> l9 = new ArrayList<String>();
- l9.add(ChatColor.GOLD + "Click to Equip!");
- itemM9.setLore(l9);
- itemM9.setDisplayName("" + ChatColor.LIGHT_PURPLE + ChatColor.BOLD
- + "Pink Tunic");
- itemM9.setColor(Color.FUCHSIA);
- item9.setItemMeta(itemM9);
- ItemStack item10 = new ItemStack(Material.LEATHER_CHESTPLATE, 1);
- item10.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
- LeatherArmorMeta itemM10 = (LeatherArmorMeta) item10.getItemMeta();
- List<String> l10 = new ArrayList<String>();
- l10.add(ChatColor.GOLD + "Click to Equip!");
- itemM10.setLore(l10);
- itemM10.setDisplayName("" + ChatColor.DARK_RED + ChatColor.BOLD
- + "Red Tunic");
- itemM10.setColor(Color.RED);
- item10.setItemMeta(itemM10);
- ItemStack item11 = new ItemStack(Material.LEATHER_CHESTPLATE, 1);
- item11.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
- LeatherArmorMeta itemM11 = (LeatherArmorMeta) item11.getItemMeta();
- List<String> l11 = new ArrayList<String>();
- l11.add(ChatColor.GOLD + "Click to Equip!");
- itemM11.setLore(l11);
- itemM11.setDisplayName("" + ChatColor.BLUE + ChatColor.BOLD
- + "Blue Tunic");
- itemM11.setColor(Color.BLUE);
- item11.setItemMeta(itemM11);
- ItemStack item12 = new ItemStack(Material.LEATHER_CHESTPLATE, 1);
- item12.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
- LeatherArmorMeta itemM12 = (LeatherArmorMeta) item12.getItemMeta();
- List<String> l12 = new ArrayList<String>();
- l12.add(ChatColor.GOLD + "Click to Equip!");
- itemM12.setLore(l12);
- itemM12.setDisplayName("" + ChatColor.DARK_GREEN + ChatColor.BOLD
- + "Green Tunic");
- itemM12.setColor(Color.GREEN);
- item12.setItemMeta(itemM12);
- ItemStack item13 = new ItemStack(Material.LEATHER_CHESTPLATE, 1);
- item13.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
- LeatherArmorMeta itemM13 = (LeatherArmorMeta) item13.getItemMeta();
- List<String> l13 = new ArrayList<String>();
- l13.add(ChatColor.GOLD + "Click to Equip!");
- itemM13.setLore(l13);
- itemM13.setDisplayName("" + ChatColor.GRAY + ChatColor.BOLD
- + "Gray Tunic");
- itemM13.setColor(Color.GRAY);
- item13.setItemMeta(itemM13);
- ItemStack item14 = new ItemStack(Material.LEATHER_CHESTPLATE, 1);
- item14.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
- LeatherArmorMeta itemM14 = (LeatherArmorMeta) item14.getItemMeta();
- List<String> l14 = new ArrayList<String>();
- l14.add(ChatColor.GOLD + "Click to Equip!");
- itemM14.setLore(l14);
- itemM14.setDisplayName("" + ChatColor.DARK_GRAY + ChatColor.BOLD
- + "Black Tunic");
- itemM14.setColor(Color.BLACK);
- item14.setItemMeta(itemM14);
- ItemStack item15 = new ItemStack(Material.LEATHER_LEGGINGS, 1);
- item15.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
- LeatherArmorMeta itemM15 = (LeatherArmorMeta) item15.getItemMeta();
- List<String> l15 = new ArrayList<String>();
- l15.add(ChatColor.GOLD + "Click to Equip!");
- itemM15.setLore(l15);
- itemM15.setDisplayName("" + ChatColor.YELLOW + ChatColor.BOLD
- + "Yellow Leggings");
- itemM15.setColor(Color.YELLOW);
- item15.setItemMeta(itemM15);
- ItemStack item16 = new ItemStack(Material.LEATHER_LEGGINGS, 1);
- item16.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
- LeatherArmorMeta itemM16 = (LeatherArmorMeta) item16.getItemMeta();
- List<String> l16 = new ArrayList<String>();
- l16.add(ChatColor.GOLD + "Click to Equip!");
- itemM16.setLore(l16);
- itemM16.setDisplayName("" + ChatColor.LIGHT_PURPLE + ChatColor.BOLD
- + "Pink Leggings");
- itemM16.setColor(Color.FUCHSIA);
- item16.setItemMeta(itemM16);
- ItemStack item17 = new ItemStack(Material.LEATHER_LEGGINGS, 1);
- item17.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
- LeatherArmorMeta itemM17 = (LeatherArmorMeta) item17.getItemMeta();
- List<String> l17 = new ArrayList<String>();
- l17.add(ChatColor.GOLD + "Click to Equip!");
- itemM17.setLore(l17);
- itemM17.setDisplayName("" + ChatColor.DARK_RED + ChatColor.BOLD
- + "Red Leggings");
- itemM17.setColor(Color.RED);
- item17.setItemMeta(itemM17);
- ItemStack item18 = new ItemStack(Material.LEATHER_LEGGINGS, 1);
- item18.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
- LeatherArmorMeta itemM18 = (LeatherArmorMeta) item18.getItemMeta();
- List<String> l18 = new ArrayList<String>();
- l18.add(ChatColor.GOLD + "Click to Equip!");
- itemM18.setLore(l18);
- itemM18.setDisplayName("" + ChatColor.BLUE + ChatColor.BOLD
- + "Blue Leggings");
- itemM18.setColor(Color.BLUE);
- item18.setItemMeta(itemM18);
- ItemStack item19 = new ItemStack(Material.LEATHER_LEGGINGS, 1);
- item19.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
- LeatherArmorMeta itemM19 = (LeatherArmorMeta) item19.getItemMeta();
- List<String> l19 = new ArrayList<String>();
- l19.add(ChatColor.GOLD + "Click to Equip!");
- itemM19.setLore(l19);
- itemM19.setDisplayName("" + ChatColor.DARK_GREEN + ChatColor.BOLD
- + "Green Leggings");
- itemM19.setColor(Color.GREEN);
- item19.setItemMeta(itemM19);
- ItemStack item20 = new ItemStack(Material.LEATHER_LEGGINGS, 1);
- item20.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
- LeatherArmorMeta itemM20 = (LeatherArmorMeta) item20.getItemMeta();
- List<String> l20 = new ArrayList<String>();
- l20.add(ChatColor.GOLD + "Click to Equip!");
- itemM20.setLore(l20);
- itemM20.setDisplayName("" + ChatColor.GRAY + ChatColor.BOLD
- + "Gray Leggings");
- itemM20.setColor(Color.GRAY);
- item20.setItemMeta(itemM20);
- ItemStack item21 = new ItemStack(Material.LEATHER_LEGGINGS, 1);
- item21.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
- LeatherArmorMeta itemM21 = (LeatherArmorMeta) item21.getItemMeta();
- List<String> l21 = new ArrayList<String>();
- l21.add(ChatColor.GOLD + "Click to Equip!");
- itemM21.setLore(l21);
- itemM21.setDisplayName("" + ChatColor.DARK_GRAY + ChatColor.BOLD
- + "Black Leggings");
- itemM21.setColor(Color.BLACK);
- item21.setItemMeta(itemM21);
- ItemStack item22 = new ItemStack(Material.LEATHER_BOOTS, 1);
- item22.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
- LeatherArmorMeta itemM22 = (LeatherArmorMeta) item22.getItemMeta();
- List<String> l22 = new ArrayList<String>();
- l22.add(ChatColor.GOLD + "Click to Equip!");
- itemM22.setLore(l22);
- itemM22.setDisplayName("" + ChatColor.YELLOW + ChatColor.BOLD
- + "Yellow Boots");
- itemM22.setColor(Color.YELLOW);
- item22.setItemMeta(itemM22);
- ItemStack item23 = new ItemStack(Material.LEATHER_BOOTS, 1);
- item23.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
- LeatherArmorMeta itemM23 = (LeatherArmorMeta) item23.getItemMeta();
- List<String> l23 = new ArrayList<String>();
- l23.add(ChatColor.GOLD + "Click to Equip!");
- itemM23.setLore(l23);
- itemM23.setDisplayName("" + ChatColor.LIGHT_PURPLE + ChatColor.BOLD
- + "Pink Boots");
- itemM23.setColor(Color.FUCHSIA);
- item23.setItemMeta(itemM23);
- ItemStack item24 = new ItemStack(Material.LEATHER_BOOTS, 1);
- item24.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
- LeatherArmorMeta itemM24 = (LeatherArmorMeta) item24.getItemMeta();
- List<String> l24 = new ArrayList<String>();
- l24.add(ChatColor.GOLD + "Click to Equip!");
- itemM24.setLore(l24);
- itemM24.setDisplayName("" + ChatColor.DARK_RED + ChatColor.BOLD
- + "Red Boots");
- itemM24.setColor(Color.RED);
- item24.setItemMeta(itemM24);
- ItemStack item25 = new ItemStack(Material.LEATHER_BOOTS, 1);
- item25.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
- LeatherArmorMeta itemM25 = (LeatherArmorMeta) item25.getItemMeta();
- List<String> l25 = new ArrayList<String>();
- l25.add(ChatColor.GOLD + "Click to Equip!");
- itemM25.setLore(l25);
- itemM25.setDisplayName("" + ChatColor.BLUE + ChatColor.BOLD
- + "Blue Boots");
- itemM25.setColor(Color.BLUE);
- item25.setItemMeta(itemM25);
- ItemStack item26 = new ItemStack(Material.LEATHER_BOOTS, 1);
- item26.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
- LeatherArmorMeta itemM26 = (LeatherArmorMeta) item26.getItemMeta();
- List<String> l26 = new ArrayList<String>();
- l26.add(ChatColor.GOLD + "Click to Equip!");
- itemM26.setLore(l26);
- itemM26.setDisplayName("" + ChatColor.DARK_GREEN + ChatColor.BOLD
- + "Green Boots");
- itemM26.setColor(Color.GREEN);
- item26.setItemMeta(itemM26);
- ItemStack item27 = new ItemStack(Material.LEATHER_BOOTS, 1);
- item27.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
- LeatherArmorMeta itemM27 = (LeatherArmorMeta) item27.getItemMeta();
- List<String> l27 = new ArrayList<String>();
- l27.add(ChatColor.GOLD + "Click to Equip!");
- itemM27.setLore(l27);
- itemM27.setDisplayName("" + ChatColor.GRAY + ChatColor.BOLD
- + "Gray Boots");
- itemM27.setColor(Color.GRAY);
- item27.setItemMeta(itemM27);
- ItemStack item28 = new ItemStack(Material.LEATHER_BOOTS, 1);
- item28.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
- LeatherArmorMeta itemM28 = (LeatherArmorMeta) item28.getItemMeta();
- List<String> l28 = new ArrayList<String>();
- l28.add(ChatColor.GOLD + "Click to Equip!");
- itemM28.setLore(l28);
- itemM28.setDisplayName("" + ChatColor.DARK_GRAY + ChatColor.BOLD
- + "Black Boots");
- itemM28.setColor(Color.BLACK);
- item28.setItemMeta(itemM28);
- ItemStack back = new ItemStack(Material.SLIME_BALL);
- ItemMeta backm = back.getItemMeta();
- backm.setDisplayName("" + ChatColor.DARK_RED + ChatColor.BOLD
- + "Back");
- back.setItemMeta(backm);
- inv.setItem(10, item1);
- inv.setItem(11, item4);
- inv.setItem(12, item7);
- inv.setItem(13, item3);
- inv.setItem(14, item6);
- inv.setItem(15, item5);
- inv.setItem(16, item2);
- inv.setItem(19, item8);
- inv.setItem(20, item9);
- inv.setItem(21, item10);
- inv.setItem(22, item11);
- inv.setItem(23, item12);
- inv.setItem(24, item13);
- inv.setItem(25, item14);
- inv.setItem(28, item15);
- inv.setItem(29, item16);
- inv.setItem(30, item17);
- inv.setItem(31, item18);
- inv.setItem(32, item19);
- inv.setItem(33, item20);
- inv.setItem(34, item21);
- inv.setItem(37, item22);
- inv.setItem(38, item23);
- inv.setItem(39, item24);
- inv.setItem(40, item25);
- inv.setItem(41, item26);
- inv.setItem(42, item27);
- inv.setItem(43, item28);
- inv.setItem(53, back);
- p.openInventory(inv);
- } else {
- ItemStack item1 = new ItemStack(Material.LEATHER_HELMET, 1);
- LeatherArmorMeta itemM1 = (LeatherArmorMeta) item1.getItemMeta();
- List<String> l1 = new ArrayList<String>();
- l1.add(ChatColor.GOLD + "Click to Equip!");
- itemM1.setLore(l1);
- itemM1.setDisplayName("" + ChatColor.YELLOW + ChatColor.BOLD
- + "Yellow Helmet");
- itemM1.setColor(Color.YELLOW);
- item1.setItemMeta(itemM1);
- ItemStack item2 = new ItemStack(Material.LEATHER_HELMET, 1);
- LeatherArmorMeta itemM2 = (LeatherArmorMeta) item2.getItemMeta();
- List<String> l2 = new ArrayList<String>();
- l2.add(ChatColor.GOLD + "Click to Equip!");
- itemM2.setLore(l2);
- itemM2.setDisplayName("" + ChatColor.DARK_GRAY + ChatColor.BOLD
- + "Black Helmet");
- itemM2.setColor(Color.BLACK);
- item2.setItemMeta(itemM2);
- ItemStack item3 = new ItemStack(Material.LEATHER_HELMET, 1);
- LeatherArmorMeta itemM3 = (LeatherArmorMeta) item3.getItemMeta();
- List<String> l3 = new ArrayList<String>();
- l3.add(ChatColor.GOLD + "Click to Equip!");
- itemM3.setLore(l3);
- itemM3.setDisplayName("" + ChatColor.BLUE + ChatColor.BOLD
- + "Blue Helmet");
- itemM3.setColor(Color.BLUE);
- item3.setItemMeta(itemM3);
- ItemStack item4 = new ItemStack(Material.LEATHER_HELMET, 1);
- LeatherArmorMeta itemM4 = (LeatherArmorMeta) item4.getItemMeta();
- List<String> l4 = new ArrayList<String>();
- l4.add(ChatColor.GOLD + "Click to Equip!");
- itemM4.setLore(l4);
- itemM4.setDisplayName("" + ChatColor.LIGHT_PURPLE + ChatColor.BOLD
- + "Pink Helmet");
- itemM4.setColor(Color.FUCHSIA);
- item4.setItemMeta(itemM4);
- ItemStack item5 = new ItemStack(Material.LEATHER_HELMET, 1);
- LeatherArmorMeta itemM5 = (LeatherArmorMeta) item5.getItemMeta();
- List<String> l5 = new ArrayList<String>();
- l5.add(ChatColor.GOLD + "Click to Equip!");
- itemM5.setLore(l5);
- itemM5.setDisplayName("" + ChatColor.GRAY + ChatColor.BOLD
- + "Gray Helmet");
- itemM5.setColor(Color.GRAY);
- item5.setItemMeta(itemM5);
- ItemStack item6 = new ItemStack(Material.LEATHER_HELMET, 1);
- LeatherArmorMeta itemM6 = (LeatherArmorMeta) item6.getItemMeta();
- List<String> l6 = new ArrayList<String>();
- l6.add(ChatColor.GOLD + "Click to Equip!");
- itemM6.setLore(l6);
- itemM6.setDisplayName("" + ChatColor.DARK_GREEN + ChatColor.BOLD
- + "Green Helmet");
- itemM6.setColor(Color.GREEN);
- item6.setItemMeta(itemM6);
- ItemStack item7 = new ItemStack(Material.LEATHER_HELMET, 1);
- LeatherArmorMeta itemM7 = (LeatherArmorMeta) item7.getItemMeta();
- List<String> l7 = new ArrayList<String>();
- l7.add(ChatColor.GOLD + "Click to Equip!");
- itemM7.setLore(l7);
- itemM7.setDisplayName("" + ChatColor.DARK_RED + ChatColor.BOLD
- + "Red Helmet");
- itemM7.setColor(Color.RED);
- item7.setItemMeta(itemM7);
- ItemStack item8 = new ItemStack(Material.LEATHER_CHESTPLATE, 1);
- LeatherArmorMeta itemM8 = (LeatherArmorMeta) item8.getItemMeta();
- List<String> l8 = new ArrayList<String>();
- l8.add(ChatColor.GOLD + "Click to Equip!");
- itemM8.setLore(l8);
- itemM8.setDisplayName("" + ChatColor.YELLOW + ChatColor.BOLD
- + "Yellow Tunic");
- itemM8.setColor(Color.YELLOW);
- item8.setItemMeta(itemM8);
- ItemStack item9 = new ItemStack(Material.LEATHER_CHESTPLATE, 1);
- LeatherArmorMeta itemM9 = (LeatherArmorMeta) item9.getItemMeta();
- List<String> l9 = new ArrayList<String>();
- l9.add(ChatColor.GOLD + "Click to Equip!");
- itemM9.setLore(l9);
- itemM9.setDisplayName("" + ChatColor.LIGHT_PURPLE + ChatColor.BOLD
- + "Pink Tunic");
- itemM9.setColor(Color.FUCHSIA);
- item9.setItemMeta(itemM9);
- ItemStack item10 = new ItemStack(Material.LEATHER_CHESTPLATE, 1);
- LeatherArmorMeta itemM10 = (LeatherArmorMeta) item10.getItemMeta();
- List<String> l10 = new ArrayList<String>();
- l10.add(ChatColor.GOLD + "Click to Equip!");
- itemM10.setLore(l10);
- itemM10.setDisplayName("" + ChatColor.DARK_RED + ChatColor.BOLD
- + "Red Tunic");
- itemM10.setColor(Color.RED);
- item10.setItemMeta(itemM10);
- ItemStack item11 = new ItemStack(Material.LEATHER_CHESTPLATE, 1);
- LeatherArmorMeta itemM11 = (LeatherArmorMeta) item11.getItemMeta();
- List<String> l11 = new ArrayList<String>();
- l11.add(ChatColor.GOLD + "Click to Equip!");
- itemM11.setLore(l11);
- itemM11.setDisplayName("" + ChatColor.BLUE + ChatColor.BOLD
- + "Blue Tunic");
- itemM11.setColor(Color.BLUE);
- item11.setItemMeta(itemM11);
- ItemStack item12 = new ItemStack(Material.LEATHER_CHESTPLATE, 1);
- LeatherArmorMeta itemM12 = (LeatherArmorMeta) item12.getItemMeta();
- List<String> l12 = new ArrayList<String>();
- l12.add(ChatColor.GOLD + "Click to Equip!");
- itemM12.setLore(l12);
- itemM12.setDisplayName("" + ChatColor.DARK_GREEN + ChatColor.BOLD
- + "Green Tunic");
- itemM12.setColor(Color.GREEN);
- item12.setItemMeta(itemM12);
- ItemStack item13 = new ItemStack(Material.LEATHER_CHESTPLATE, 1);
- LeatherArmorMeta itemM13 = (LeatherArmorMeta) item13.getItemMeta();
- List<String> l13 = new ArrayList<String>();
- l13.add(ChatColor.GOLD + "Click to Equip!");
- itemM13.setLore(l13);
- itemM13.setDisplayName("" + ChatColor.GRAY + ChatColor.BOLD
- + "Gray Tunic");
- itemM13.setColor(Color.GRAY);
- item13.setItemMeta(itemM13);
- ItemStack item14 = new ItemStack(Material.LEATHER_CHESTPLATE, 1);
- LeatherArmorMeta itemM14 = (LeatherArmorMeta) item14.getItemMeta();
- List<String> l14 = new ArrayList<String>();
- l14.add(ChatColor.GOLD + "Click to Equip!");
- itemM14.setLore(l14);
- itemM14.setDisplayName("" + ChatColor.DARK_GRAY + ChatColor.BOLD
- + "Black Tunic");
- itemM14.setColor(Color.BLACK);
- item14.setItemMeta(itemM14);
- ItemStack item15 = new ItemStack(Material.LEATHER_LEGGINGS, 1);
- LeatherArmorMeta itemM15 = (LeatherArmorMeta) item15.getItemMeta();
- List<String> l15 = new ArrayList<String>();
- l15.add(ChatColor.GOLD + "Click to Equip!");
- itemM15.setLore(l15);
- itemM15.setDisplayName("" + ChatColor.YELLOW + ChatColor.BOLD
- + "Yellow Leggings");
- itemM15.setColor(Color.YELLOW);
- item15.setItemMeta(itemM15);
- ItemStack item16 = new ItemStack(Material.LEATHER_LEGGINGS, 1);
- LeatherArmorMeta itemM16 = (LeatherArmorMeta) item16.getItemMeta();
- List<String> l16 = new ArrayList<String>();
- l16.add(ChatColor.GOLD + "Click to Equip!");
- itemM16.setLore(l16);
- itemM16.setDisplayName("" + ChatColor.LIGHT_PURPLE + ChatColor.BOLD
- + "Pink Leggings");
- itemM16.setColor(Color.FUCHSIA);
- item16.setItemMeta(itemM16);
- ItemStack item17 = new ItemStack(Material.LEATHER_LEGGINGS, 1);
- LeatherArmorMeta itemM17 = (LeatherArmorMeta) item17.getItemMeta();
- List<String> l17 = new ArrayList<String>();
- l17.add(ChatColor.GOLD + "Click to Equip!");
- itemM17.setLore(l17);
- itemM17.setDisplayName("" + ChatColor.DARK_RED + ChatColor.BOLD
- + "Red Leggings");
- itemM17.setColor(Color.RED);
- item17.setItemMeta(itemM17);
- ItemStack item18 = new ItemStack(Material.LEATHER_LEGGINGS, 1);
- LeatherArmorMeta itemM18 = (LeatherArmorMeta) item18.getItemMeta();
- List<String> l18 = new ArrayList<String>();
- l18.add(ChatColor.GOLD + "Click to Equip!");
- itemM18.setLore(l18);
- itemM18.setDisplayName("" + ChatColor.BLUE + ChatColor.BOLD
- + "Blue Leggings");
- itemM18.setColor(Color.BLUE);
- item18.setItemMeta(itemM18);
- ItemStack item19 = new ItemStack(Material.LEATHER_LEGGINGS, 1);
- LeatherArmorMeta itemM19 = (LeatherArmorMeta) item19.getItemMeta();
- List<String> l19 = new ArrayList<String>();
- l19.add(ChatColor.GOLD + "Click to Equip!");
- itemM19.setLore(l19);
- itemM19.setDisplayName("" + ChatColor.DARK_GREEN + ChatColor.BOLD
- + "Green Leggings");
- itemM19.setColor(Color.GREEN);
- item19.setItemMeta(itemM19);
- ItemStack item20 = new ItemStack(Material.LEATHER_LEGGINGS, 1);
- LeatherArmorMeta itemM20 = (LeatherArmorMeta) item20.getItemMeta();
- List<String> l20 = new ArrayList<String>();
- l20.add(ChatColor.GOLD + "Click to Equip!");
- itemM20.setLore(l20);
- itemM20.setDisplayName("" + ChatColor.GRAY + ChatColor.BOLD
- + "Gray Leggings");
- itemM20.setColor(Color.GRAY);
- item20.setItemMeta(itemM20);
- ItemStack item21 = new ItemStack(Material.LEATHER_LEGGINGS, 1);
- LeatherArmorMeta itemM21 = (LeatherArmorMeta) item21.getItemMeta();
- List<String> l21 = new ArrayList<String>();
- l21.add(ChatColor.GOLD + "Click to Equip!");
- itemM21.setLore(l21);
- itemM21.setDisplayName("" + ChatColor.DARK_GRAY + ChatColor.BOLD
- + "Black Leggings");
- itemM21.setColor(Color.BLACK);
- item21.setItemMeta(itemM21);
- ItemStack item22 = new ItemStack(Material.LEATHER_BOOTS, 1);
- LeatherArmorMeta itemM22 = (LeatherArmorMeta) item22.getItemMeta();
- List<String> l22 = new ArrayList<String>();
- l22.add(ChatColor.GOLD + "Click to Equip!");
- itemM22.setLore(l22);
- itemM22.setDisplayName("" + ChatColor.YELLOW + ChatColor.BOLD
- + "Yellow Boots");
- itemM22.setColor(Color.YELLOW);
- item22.setItemMeta(itemM22);
- ItemStack item23 = new ItemStack(Material.LEATHER_BOOTS, 1);
- LeatherArmorMeta itemM23 = (LeatherArmorMeta) item23.getItemMeta();
- List<String> l23 = new ArrayList<String>();
- l23.add(ChatColor.GOLD + "Click to Equip!");
- itemM23.setLore(l23);
- itemM23.setDisplayName("" + ChatColor.LIGHT_PURPLE + ChatColor.BOLD
- + "Pink Boots");
- itemM23.setColor(Color.FUCHSIA);
- item23.setItemMeta(itemM23);
- ItemStack item24 = new ItemStack(Material.LEATHER_BOOTS, 1);
- LeatherArmorMeta itemM24 = (LeatherArmorMeta) item24.getItemMeta();
- List<String> l24 = new ArrayList<String>();
- l24.add(ChatColor.GOLD + "Click to Equip!");
- itemM24.setLore(l24);
- itemM24.setDisplayName("" + ChatColor.DARK_RED + ChatColor.BOLD
- + "Red Boots");
- itemM24.setColor(Color.RED);
- item24.setItemMeta(itemM24);
- ItemStack item25 = new ItemStack(Material.LEATHER_BOOTS, 1);
- LeatherArmorMeta itemM25 = (LeatherArmorMeta) item25.getItemMeta();
- List<String> l25 = new ArrayList<String>();
- l25.add(ChatColor.GOLD + "Click to Equip!");
- itemM25.setLore(l25);
- itemM25.setDisplayName("" + ChatColor.BLUE + ChatColor.BOLD
- + "Blue Boots");
- itemM25.setColor(Color.BLUE);
- item25.setItemMeta(itemM25);
- ItemStack item26 = new ItemStack(Material.LEATHER_BOOTS, 1);
- LeatherArmorMeta itemM26 = (LeatherArmorMeta) item26.getItemMeta();
- List<String> l26 = new ArrayList<String>();
- l26.add(ChatColor.GOLD + "Click to Equip!");
- itemM26.setLore(l26);
- itemM26.setDisplayName("" + ChatColor.DARK_GREEN + ChatColor.BOLD
- + "Green Boots");
- itemM26.setColor(Color.GREEN);
- item26.setItemMeta(itemM26);
- ItemStack item27 = new ItemStack(Material.LEATHER_BOOTS, 1);
- LeatherArmorMeta itemM27 = (LeatherArmorMeta) item27.getItemMeta();
- List<String> l27 = new ArrayList<String>();
- l27.add(ChatColor.GOLD + "Click to Equip!");
- itemM27.setLore(l27);
- itemM27.setDisplayName("" + ChatColor.GRAY + ChatColor.BOLD
- + "Gray Boots");
- itemM27.setColor(Color.GRAY);
- item27.setItemMeta(itemM27);
- ItemStack item28 = new ItemStack(Material.LEATHER_BOOTS, 1);
- LeatherArmorMeta itemM28 = (LeatherArmorMeta) item28.getItemMeta();
- List<String> l28 = new ArrayList<String>();
- l28.add(ChatColor.GOLD + "Click to Equip!");
- itemM28.setLore(l28);
- itemM28.setDisplayName("" + ChatColor.DARK_GRAY + ChatColor.BOLD
- + "Black Boots");
- itemM28.setColor(Color.BLACK);
- item28.setItemMeta(itemM28);
- ItemStack back = new ItemStack(Material.SLIME_BALL);
- ItemMeta backm = back.getItemMeta();
- backm.setDisplayName("" + ChatColor.DARK_RED + ChatColor.BOLD
- + "Back");
- back.setItemMeta(backm);
- inv.setItem(10, item1);
- inv.setItem(11, item4);
- inv.setItem(12, item7);
- inv.setItem(13, item3);
- inv.setItem(14, item6);
- inv.setItem(15, item5);
- inv.setItem(16, item2);
- inv.setItem(19, item8);
- inv.setItem(20, item9);
- inv.setItem(21, item10);
- inv.setItem(22, item11);
- inv.setItem(23, item12);
- inv.setItem(24, item13);
- inv.setItem(25, item14);
- inv.setItem(28, item15);
- inv.setItem(29, item16);
- inv.setItem(30, item17);
- inv.setItem(31, item18);
- inv.setItem(32, item19);
- inv.setItem(33, item20);
- inv.setItem(34, item21);
- inv.setItem(37, item22);
- inv.setItem(38, item23);
- inv.setItem(39, item24);
- inv.setItem(40, item25);
- inv.setItem(41, item26);
- inv.setItem(42, item27);
- inv.setItem(43, item28);
- inv.setItem(53, back);
- p.openInventory(inv);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement