Advertisement
Guest User

Untitled

a guest
Mar 5th, 2015
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.27 KB | None | 0 0
  1. package me.bronzzze.wardrobe;
  2. import java.util.ArrayList;
  3. import java.util.List;
  4. import org.bukkit.Bukkit;
  5. import org.bukkit.ChatColor;
  6. import org.bukkit.Color;
  7. import org.bukkit.Material;
  8. import org.bukkit.enchantments.Enchantment;
  9. import org.bukkit.entity.Player;
  10. import org.bukkit.inventory.Inventory;
  11. import org.bukkit.inventory.ItemStack;
  12. import org.bukkit.inventory.meta.ItemMeta;
  13. import org.bukkit.inventory.meta.LeatherArmorMeta;
  14. public class ArmourGUI {
  15. private ArmourGUI() {
  16. }
  17. private static ArmourGUI instance = new ArmourGUI();
  18. public static ArmourGUI getInstance() {
  19. return instance;
  20. }
  21. Main i = Main.getInstance();
  22. public void openInventory(Player p) {
  23. Inventory inv = Bukkit
  24. .getServer()
  25. .createInventory(
  26. null,
  27. 54,
  28. ("" + ChatColor.LIGHT_PURPLE + ChatColor.BOLD + "Armour Selector"));
  29. if (i.getConfig().getBoolean("Enchantments") == true) {
  30. ItemStack item1 = new ItemStack(Material.LEATHER_HELMET, 1);
  31. item1.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
  32. LeatherArmorMeta itemM1 = (LeatherArmorMeta) item1.getItemMeta();
  33. List<String> l1 = new ArrayList<String>();
  34. l1.add(ChatColor.GOLD + "Click to Equip!");
  35. itemM1.setLore(l1);
  36. itemM1.setDisplayName("" + ChatColor.YELLOW + ChatColor.BOLD
  37. + "Yellow Helmet");
  38. itemM1.setColor(Color.YELLOW);
  39. item1.setItemMeta(itemM1);
  40. ItemStack item2 = new ItemStack(Material.LEATHER_HELMET, 1);
  41. item2.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
  42. LeatherArmorMeta itemM2 = (LeatherArmorMeta) item2.getItemMeta();
  43. List<String> l2 = new ArrayList<String>();
  44. l2.add(ChatColor.GOLD + "Click to Equip!");
  45. itemM2.setLore(l2);
  46. itemM2.setDisplayName("" + ChatColor.DARK_GRAY + ChatColor.BOLD
  47. + "Black Helmet");
  48. itemM2.setColor(Color.BLACK);
  49. item2.setItemMeta(itemM2);
  50. ItemStack item3 = new ItemStack(Material.LEATHER_HELMET, 1);
  51. item3.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
  52. LeatherArmorMeta itemM3 = (LeatherArmorMeta) item3.getItemMeta();
  53. List<String> l3 = new ArrayList<String>();
  54. l3.add(ChatColor.GOLD + "Click to Equip!");
  55. itemM3.setLore(l3);
  56. itemM3.setDisplayName("" + ChatColor.BLUE + ChatColor.BOLD
  57. + "Blue Helmet");
  58. itemM3.setColor(Color.BLUE);
  59. item3.setItemMeta(itemM3);
  60. ItemStack item4 = new ItemStack(Material.LEATHER_HELMET, 1);
  61. item4.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
  62. LeatherArmorMeta itemM4 = (LeatherArmorMeta) item4.getItemMeta();
  63. List<String> l4 = new ArrayList<String>();
  64. l4.add(ChatColor.GOLD + "Click to Equip!");
  65. itemM4.setLore(l4);
  66. itemM4.setDisplayName("" + ChatColor.LIGHT_PURPLE + ChatColor.BOLD
  67. + "Pink Helmet");
  68. itemM4.setColor(Color.FUCHSIA);
  69. item4.setItemMeta(itemM4);
  70. ItemStack item5 = new ItemStack(Material.LEATHER_HELMET, 1);
  71. item5.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
  72. LeatherArmorMeta itemM5 = (LeatherArmorMeta) item5.getItemMeta();
  73. List<String> l5 = new ArrayList<String>();
  74. l5.add(ChatColor.GOLD + "Click to Equip!");
  75. itemM5.setLore(l5);
  76. itemM5.setDisplayName("" + ChatColor.GRAY + ChatColor.BOLD
  77. + "Gray Helmet");
  78. itemM5.setColor(Color.GRAY);
  79. item5.setItemMeta(itemM5);
  80. ItemStack item6 = new ItemStack(Material.LEATHER_HELMET, 1);
  81. item6.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
  82. LeatherArmorMeta itemM6 = (LeatherArmorMeta) item6.getItemMeta();
  83. List<String> l6 = new ArrayList<String>();
  84. l6.add(ChatColor.GOLD + "Click to Equip!");
  85. itemM6.setLore(l6);
  86. itemM6.setDisplayName("" + ChatColor.DARK_GREEN + ChatColor.BOLD
  87. + "Green Helmet");
  88. itemM6.setColor(Color.GREEN);
  89. item6.setItemMeta(itemM6);
  90. ItemStack item7 = new ItemStack(Material.LEATHER_HELMET, 1);
  91. item7.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
  92. LeatherArmorMeta itemM7 = (LeatherArmorMeta) item7.getItemMeta();
  93. List<String> l7 = new ArrayList<String>();
  94. l7.add(ChatColor.GOLD + "Click to Equip!");
  95. itemM7.setLore(l7);
  96. itemM7.setDisplayName("" + ChatColor.DARK_RED + ChatColor.BOLD
  97. + "Red Helmet");
  98. itemM7.setColor(Color.RED);
  99. item7.setItemMeta(itemM7);
  100. ItemStack item8 = new ItemStack(Material.LEATHER_CHESTPLATE, 1);
  101. item8.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
  102. LeatherArmorMeta itemM8 = (LeatherArmorMeta) item8.getItemMeta();
  103. List<String> l8 = new ArrayList<String>();
  104. l8.add(ChatColor.GOLD + "Click to Equip!");
  105. itemM8.setLore(l8);
  106. itemM8.setDisplayName("" + ChatColor.YELLOW + ChatColor.BOLD
  107. + "Yellow Tunic");
  108. itemM8.setColor(Color.YELLOW);
  109. item8.setItemMeta(itemM8);
  110. ItemStack item9 = new ItemStack(Material.LEATHER_CHESTPLATE, 1);
  111. item9.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
  112. LeatherArmorMeta itemM9 = (LeatherArmorMeta) item9.getItemMeta();
  113. List<String> l9 = new ArrayList<String>();
  114. l9.add(ChatColor.GOLD + "Click to Equip!");
  115. itemM9.setLore(l9);
  116. itemM9.setDisplayName("" + ChatColor.LIGHT_PURPLE + ChatColor.BOLD
  117. + "Pink Tunic");
  118. itemM9.setColor(Color.FUCHSIA);
  119. item9.setItemMeta(itemM9);
  120. ItemStack item10 = new ItemStack(Material.LEATHER_CHESTPLATE, 1);
  121. item10.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
  122. LeatherArmorMeta itemM10 = (LeatherArmorMeta) item10.getItemMeta();
  123. List<String> l10 = new ArrayList<String>();
  124. l10.add(ChatColor.GOLD + "Click to Equip!");
  125. itemM10.setLore(l10);
  126. itemM10.setDisplayName("" + ChatColor.DARK_RED + ChatColor.BOLD
  127. + "Red Tunic");
  128. itemM10.setColor(Color.RED);
  129. item10.setItemMeta(itemM10);
  130. ItemStack item11 = new ItemStack(Material.LEATHER_CHESTPLATE, 1);
  131. item11.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
  132. LeatherArmorMeta itemM11 = (LeatherArmorMeta) item11.getItemMeta();
  133. List<String> l11 = new ArrayList<String>();
  134. l11.add(ChatColor.GOLD + "Click to Equip!");
  135. itemM11.setLore(l11);
  136. itemM11.setDisplayName("" + ChatColor.BLUE + ChatColor.BOLD
  137. + "Blue Tunic");
  138. itemM11.setColor(Color.BLUE);
  139. item11.setItemMeta(itemM11);
  140. ItemStack item12 = new ItemStack(Material.LEATHER_CHESTPLATE, 1);
  141. item12.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
  142. LeatherArmorMeta itemM12 = (LeatherArmorMeta) item12.getItemMeta();
  143. List<String> l12 = new ArrayList<String>();
  144. l12.add(ChatColor.GOLD + "Click to Equip!");
  145. itemM12.setLore(l12);
  146. itemM12.setDisplayName("" + ChatColor.DARK_GREEN + ChatColor.BOLD
  147. + "Green Tunic");
  148. itemM12.setColor(Color.GREEN);
  149. item12.setItemMeta(itemM12);
  150. ItemStack item13 = new ItemStack(Material.LEATHER_CHESTPLATE, 1);
  151. item13.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
  152. LeatherArmorMeta itemM13 = (LeatherArmorMeta) item13.getItemMeta();
  153. List<String> l13 = new ArrayList<String>();
  154. l13.add(ChatColor.GOLD + "Click to Equip!");
  155. itemM13.setLore(l13);
  156. itemM13.setDisplayName("" + ChatColor.GRAY + ChatColor.BOLD
  157. + "Gray Tunic");
  158. itemM13.setColor(Color.GRAY);
  159. item13.setItemMeta(itemM13);
  160. ItemStack item14 = new ItemStack(Material.LEATHER_CHESTPLATE, 1);
  161. item14.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
  162. LeatherArmorMeta itemM14 = (LeatherArmorMeta) item14.getItemMeta();
  163. List<String> l14 = new ArrayList<String>();
  164. l14.add(ChatColor.GOLD + "Click to Equip!");
  165. itemM14.setLore(l14);
  166. itemM14.setDisplayName("" + ChatColor.DARK_GRAY + ChatColor.BOLD
  167. + "Black Tunic");
  168. itemM14.setColor(Color.BLACK);
  169. item14.setItemMeta(itemM14);
  170. ItemStack item15 = new ItemStack(Material.LEATHER_LEGGINGS, 1);
  171. item15.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
  172. LeatherArmorMeta itemM15 = (LeatherArmorMeta) item15.getItemMeta();
  173. List<String> l15 = new ArrayList<String>();
  174. l15.add(ChatColor.GOLD + "Click to Equip!");
  175. itemM15.setLore(l15);
  176. itemM15.setDisplayName("" + ChatColor.YELLOW + ChatColor.BOLD
  177. + "Yellow Leggings");
  178. itemM15.setColor(Color.YELLOW);
  179. item15.setItemMeta(itemM15);
  180. ItemStack item16 = new ItemStack(Material.LEATHER_LEGGINGS, 1);
  181. item16.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
  182. LeatherArmorMeta itemM16 = (LeatherArmorMeta) item16.getItemMeta();
  183. List<String> l16 = new ArrayList<String>();
  184. l16.add(ChatColor.GOLD + "Click to Equip!");
  185. itemM16.setLore(l16);
  186. itemM16.setDisplayName("" + ChatColor.LIGHT_PURPLE + ChatColor.BOLD
  187. + "Pink Leggings");
  188. itemM16.setColor(Color.FUCHSIA);
  189. item16.setItemMeta(itemM16);
  190. ItemStack item17 = new ItemStack(Material.LEATHER_LEGGINGS, 1);
  191. item17.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
  192. LeatherArmorMeta itemM17 = (LeatherArmorMeta) item17.getItemMeta();
  193. List<String> l17 = new ArrayList<String>();
  194. l17.add(ChatColor.GOLD + "Click to Equip!");
  195. itemM17.setLore(l17);
  196. itemM17.setDisplayName("" + ChatColor.DARK_RED + ChatColor.BOLD
  197. + "Red Leggings");
  198. itemM17.setColor(Color.RED);
  199. item17.setItemMeta(itemM17);
  200. ItemStack item18 = new ItemStack(Material.LEATHER_LEGGINGS, 1);
  201. item18.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
  202. LeatherArmorMeta itemM18 = (LeatherArmorMeta) item18.getItemMeta();
  203. List<String> l18 = new ArrayList<String>();
  204. l18.add(ChatColor.GOLD + "Click to Equip!");
  205. itemM18.setLore(l18);
  206. itemM18.setDisplayName("" + ChatColor.BLUE + ChatColor.BOLD
  207. + "Blue Leggings");
  208. itemM18.setColor(Color.BLUE);
  209. item18.setItemMeta(itemM18);
  210. ItemStack item19 = new ItemStack(Material.LEATHER_LEGGINGS, 1);
  211. item19.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
  212. LeatherArmorMeta itemM19 = (LeatherArmorMeta) item19.getItemMeta();
  213. List<String> l19 = new ArrayList<String>();
  214. l19.add(ChatColor.GOLD + "Click to Equip!");
  215. itemM19.setLore(l19);
  216. itemM19.setDisplayName("" + ChatColor.DARK_GREEN + ChatColor.BOLD
  217. + "Green Leggings");
  218. itemM19.setColor(Color.GREEN);
  219. item19.setItemMeta(itemM19);
  220. ItemStack item20 = new ItemStack(Material.LEATHER_LEGGINGS, 1);
  221. item20.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
  222. LeatherArmorMeta itemM20 = (LeatherArmorMeta) item20.getItemMeta();
  223. List<String> l20 = new ArrayList<String>();
  224. l20.add(ChatColor.GOLD + "Click to Equip!");
  225. itemM20.setLore(l20);
  226. itemM20.setDisplayName("" + ChatColor.GRAY + ChatColor.BOLD
  227. + "Gray Leggings");
  228. itemM20.setColor(Color.GRAY);
  229. item20.setItemMeta(itemM20);
  230. ItemStack item21 = new ItemStack(Material.LEATHER_LEGGINGS, 1);
  231. item21.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
  232. LeatherArmorMeta itemM21 = (LeatherArmorMeta) item21.getItemMeta();
  233. List<String> l21 = new ArrayList<String>();
  234. l21.add(ChatColor.GOLD + "Click to Equip!");
  235. itemM21.setLore(l21);
  236. itemM21.setDisplayName("" + ChatColor.DARK_GRAY + ChatColor.BOLD
  237. + "Black Leggings");
  238. itemM21.setColor(Color.BLACK);
  239. item21.setItemMeta(itemM21);
  240. ItemStack item22 = new ItemStack(Material.LEATHER_BOOTS, 1);
  241. item22.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
  242. LeatherArmorMeta itemM22 = (LeatherArmorMeta) item22.getItemMeta();
  243. List<String> l22 = new ArrayList<String>();
  244. l22.add(ChatColor.GOLD + "Click to Equip!");
  245. itemM22.setLore(l22);
  246. itemM22.setDisplayName("" + ChatColor.YELLOW + ChatColor.BOLD
  247. + "Yellow Boots");
  248. itemM22.setColor(Color.YELLOW);
  249. item22.setItemMeta(itemM22);
  250. ItemStack item23 = new ItemStack(Material.LEATHER_BOOTS, 1);
  251. item23.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
  252. LeatherArmorMeta itemM23 = (LeatherArmorMeta) item23.getItemMeta();
  253. List<String> l23 = new ArrayList<String>();
  254. l23.add(ChatColor.GOLD + "Click to Equip!");
  255. itemM23.setLore(l23);
  256. itemM23.setDisplayName("" + ChatColor.LIGHT_PURPLE + ChatColor.BOLD
  257. + "Pink Boots");
  258. itemM23.setColor(Color.FUCHSIA);
  259. item23.setItemMeta(itemM23);
  260. ItemStack item24 = new ItemStack(Material.LEATHER_BOOTS, 1);
  261. item24.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
  262. LeatherArmorMeta itemM24 = (LeatherArmorMeta) item24.getItemMeta();
  263. List<String> l24 = new ArrayList<String>();
  264. l24.add(ChatColor.GOLD + "Click to Equip!");
  265. itemM24.setLore(l24);
  266. itemM24.setDisplayName("" + ChatColor.DARK_RED + ChatColor.BOLD
  267. + "Red Boots");
  268. itemM24.setColor(Color.RED);
  269. item24.setItemMeta(itemM24);
  270. ItemStack item25 = new ItemStack(Material.LEATHER_BOOTS, 1);
  271. item25.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
  272. LeatherArmorMeta itemM25 = (LeatherArmorMeta) item25.getItemMeta();
  273. List<String> l25 = new ArrayList<String>();
  274. l25.add(ChatColor.GOLD + "Click to Equip!");
  275. itemM25.setLore(l25);
  276. itemM25.setDisplayName("" + ChatColor.BLUE + ChatColor.BOLD
  277. + "Blue Boots");
  278. itemM25.setColor(Color.BLUE);
  279. item25.setItemMeta(itemM25);
  280. ItemStack item26 = new ItemStack(Material.LEATHER_BOOTS, 1);
  281. item26.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
  282. LeatherArmorMeta itemM26 = (LeatherArmorMeta) item26.getItemMeta();
  283. List<String> l26 = new ArrayList<String>();
  284. l26.add(ChatColor.GOLD + "Click to Equip!");
  285. itemM26.setLore(l26);
  286. itemM26.setDisplayName("" + ChatColor.DARK_GREEN + ChatColor.BOLD
  287. + "Green Boots");
  288. itemM26.setColor(Color.GREEN);
  289. item26.setItemMeta(itemM26);
  290. ItemStack item27 = new ItemStack(Material.LEATHER_BOOTS, 1);
  291. item27.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
  292. LeatherArmorMeta itemM27 = (LeatherArmorMeta) item27.getItemMeta();
  293. List<String> l27 = new ArrayList<String>();
  294. l27.add(ChatColor.GOLD + "Click to Equip!");
  295. itemM27.setLore(l27);
  296. itemM27.setDisplayName("" + ChatColor.GRAY + ChatColor.BOLD
  297. + "Gray Boots");
  298. itemM27.setColor(Color.GRAY);
  299. item27.setItemMeta(itemM27);
  300. ItemStack item28 = new ItemStack(Material.LEATHER_BOOTS, 1);
  301. item28.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
  302. LeatherArmorMeta itemM28 = (LeatherArmorMeta) item28.getItemMeta();
  303. List<String> l28 = new ArrayList<String>();
  304. l28.add(ChatColor.GOLD + "Click to Equip!");
  305. itemM28.setLore(l28);
  306. itemM28.setDisplayName("" + ChatColor.DARK_GRAY + ChatColor.BOLD
  307. + "Black Boots");
  308. itemM28.setColor(Color.BLACK);
  309. item28.setItemMeta(itemM28);
  310. ItemStack back = new ItemStack(Material.SLIME_BALL);
  311. ItemMeta backm = back.getItemMeta();
  312. backm.setDisplayName("" + ChatColor.DARK_RED + ChatColor.BOLD
  313. + "Back");
  314. back.setItemMeta(backm);
  315. inv.setItem(10, item1);
  316. inv.setItem(11, item4);
  317. inv.setItem(12, item7);
  318. inv.setItem(13, item3);
  319. inv.setItem(14, item6);
  320. inv.setItem(15, item5);
  321. inv.setItem(16, item2);
  322. inv.setItem(19, item8);
  323. inv.setItem(20, item9);
  324. inv.setItem(21, item10);
  325. inv.setItem(22, item11);
  326. inv.setItem(23, item12);
  327. inv.setItem(24, item13);
  328. inv.setItem(25, item14);
  329. inv.setItem(28, item15);
  330. inv.setItem(29, item16);
  331. inv.setItem(30, item17);
  332. inv.setItem(31, item18);
  333. inv.setItem(32, item19);
  334. inv.setItem(33, item20);
  335. inv.setItem(34, item21);
  336. inv.setItem(37, item22);
  337. inv.setItem(38, item23);
  338. inv.setItem(39, item24);
  339. inv.setItem(40, item25);
  340. inv.setItem(41, item26);
  341. inv.setItem(42, item27);
  342. inv.setItem(43, item28);
  343. inv.setItem(53, back);
  344. p.openInventory(inv);
  345. } else {
  346. ItemStack item1 = new ItemStack(Material.LEATHER_HELMET, 1);
  347. LeatherArmorMeta itemM1 = (LeatherArmorMeta) item1.getItemMeta();
  348. List<String> l1 = new ArrayList<String>();
  349. l1.add(ChatColor.GOLD + "Click to Equip!");
  350. itemM1.setLore(l1);
  351. itemM1.setDisplayName("" + ChatColor.YELLOW + ChatColor.BOLD
  352. + "Yellow Helmet");
  353. itemM1.setColor(Color.YELLOW);
  354. item1.setItemMeta(itemM1);
  355. ItemStack item2 = new ItemStack(Material.LEATHER_HELMET, 1);
  356. LeatherArmorMeta itemM2 = (LeatherArmorMeta) item2.getItemMeta();
  357. List<String> l2 = new ArrayList<String>();
  358. l2.add(ChatColor.GOLD + "Click to Equip!");
  359. itemM2.setLore(l2);
  360. itemM2.setDisplayName("" + ChatColor.DARK_GRAY + ChatColor.BOLD
  361. + "Black Helmet");
  362. itemM2.setColor(Color.BLACK);
  363. item2.setItemMeta(itemM2);
  364. ItemStack item3 = new ItemStack(Material.LEATHER_HELMET, 1);
  365. LeatherArmorMeta itemM3 = (LeatherArmorMeta) item3.getItemMeta();
  366. List<String> l3 = new ArrayList<String>();
  367. l3.add(ChatColor.GOLD + "Click to Equip!");
  368. itemM3.setLore(l3);
  369. itemM3.setDisplayName("" + ChatColor.BLUE + ChatColor.BOLD
  370. + "Blue Helmet");
  371. itemM3.setColor(Color.BLUE);
  372. item3.setItemMeta(itemM3);
  373. ItemStack item4 = new ItemStack(Material.LEATHER_HELMET, 1);
  374. LeatherArmorMeta itemM4 = (LeatherArmorMeta) item4.getItemMeta();
  375. List<String> l4 = new ArrayList<String>();
  376. l4.add(ChatColor.GOLD + "Click to Equip!");
  377. itemM4.setLore(l4);
  378. itemM4.setDisplayName("" + ChatColor.LIGHT_PURPLE + ChatColor.BOLD
  379. + "Pink Helmet");
  380. itemM4.setColor(Color.FUCHSIA);
  381. item4.setItemMeta(itemM4);
  382. ItemStack item5 = new ItemStack(Material.LEATHER_HELMET, 1);
  383. LeatherArmorMeta itemM5 = (LeatherArmorMeta) item5.getItemMeta();
  384. List<String> l5 = new ArrayList<String>();
  385. l5.add(ChatColor.GOLD + "Click to Equip!");
  386. itemM5.setLore(l5);
  387. itemM5.setDisplayName("" + ChatColor.GRAY + ChatColor.BOLD
  388. + "Gray Helmet");
  389. itemM5.setColor(Color.GRAY);
  390. item5.setItemMeta(itemM5);
  391. ItemStack item6 = new ItemStack(Material.LEATHER_HELMET, 1);
  392. LeatherArmorMeta itemM6 = (LeatherArmorMeta) item6.getItemMeta();
  393. List<String> l6 = new ArrayList<String>();
  394. l6.add(ChatColor.GOLD + "Click to Equip!");
  395. itemM6.setLore(l6);
  396. itemM6.setDisplayName("" + ChatColor.DARK_GREEN + ChatColor.BOLD
  397. + "Green Helmet");
  398. itemM6.setColor(Color.GREEN);
  399. item6.setItemMeta(itemM6);
  400. ItemStack item7 = new ItemStack(Material.LEATHER_HELMET, 1);
  401. LeatherArmorMeta itemM7 = (LeatherArmorMeta) item7.getItemMeta();
  402. List<String> l7 = new ArrayList<String>();
  403. l7.add(ChatColor.GOLD + "Click to Equip!");
  404. itemM7.setLore(l7);
  405. itemM7.setDisplayName("" + ChatColor.DARK_RED + ChatColor.BOLD
  406. + "Red Helmet");
  407. itemM7.setColor(Color.RED);
  408. item7.setItemMeta(itemM7);
  409. ItemStack item8 = new ItemStack(Material.LEATHER_CHESTPLATE, 1);
  410. LeatherArmorMeta itemM8 = (LeatherArmorMeta) item8.getItemMeta();
  411. List<String> l8 = new ArrayList<String>();
  412. l8.add(ChatColor.GOLD + "Click to Equip!");
  413. itemM8.setLore(l8);
  414. itemM8.setDisplayName("" + ChatColor.YELLOW + ChatColor.BOLD
  415. + "Yellow Tunic");
  416. itemM8.setColor(Color.YELLOW);
  417. item8.setItemMeta(itemM8);
  418. ItemStack item9 = new ItemStack(Material.LEATHER_CHESTPLATE, 1);
  419. LeatherArmorMeta itemM9 = (LeatherArmorMeta) item9.getItemMeta();
  420. List<String> l9 = new ArrayList<String>();
  421. l9.add(ChatColor.GOLD + "Click to Equip!");
  422. itemM9.setLore(l9);
  423. itemM9.setDisplayName("" + ChatColor.LIGHT_PURPLE + ChatColor.BOLD
  424. + "Pink Tunic");
  425. itemM9.setColor(Color.FUCHSIA);
  426. item9.setItemMeta(itemM9);
  427. ItemStack item10 = new ItemStack(Material.LEATHER_CHESTPLATE, 1);
  428. LeatherArmorMeta itemM10 = (LeatherArmorMeta) item10.getItemMeta();
  429. List<String> l10 = new ArrayList<String>();
  430. l10.add(ChatColor.GOLD + "Click to Equip!");
  431. itemM10.setLore(l10);
  432. itemM10.setDisplayName("" + ChatColor.DARK_RED + ChatColor.BOLD
  433. + "Red Tunic");
  434. itemM10.setColor(Color.RED);
  435. item10.setItemMeta(itemM10);
  436. ItemStack item11 = new ItemStack(Material.LEATHER_CHESTPLATE, 1);
  437. LeatherArmorMeta itemM11 = (LeatherArmorMeta) item11.getItemMeta();
  438. List<String> l11 = new ArrayList<String>();
  439. l11.add(ChatColor.GOLD + "Click to Equip!");
  440. itemM11.setLore(l11);
  441. itemM11.setDisplayName("" + ChatColor.BLUE + ChatColor.BOLD
  442. + "Blue Tunic");
  443. itemM11.setColor(Color.BLUE);
  444. item11.setItemMeta(itemM11);
  445. ItemStack item12 = new ItemStack(Material.LEATHER_CHESTPLATE, 1);
  446. LeatherArmorMeta itemM12 = (LeatherArmorMeta) item12.getItemMeta();
  447. List<String> l12 = new ArrayList<String>();
  448. l12.add(ChatColor.GOLD + "Click to Equip!");
  449. itemM12.setLore(l12);
  450. itemM12.setDisplayName("" + ChatColor.DARK_GREEN + ChatColor.BOLD
  451. + "Green Tunic");
  452. itemM12.setColor(Color.GREEN);
  453. item12.setItemMeta(itemM12);
  454. ItemStack item13 = new ItemStack(Material.LEATHER_CHESTPLATE, 1);
  455. LeatherArmorMeta itemM13 = (LeatherArmorMeta) item13.getItemMeta();
  456. List<String> l13 = new ArrayList<String>();
  457. l13.add(ChatColor.GOLD + "Click to Equip!");
  458. itemM13.setLore(l13);
  459. itemM13.setDisplayName("" + ChatColor.GRAY + ChatColor.BOLD
  460. + "Gray Tunic");
  461. itemM13.setColor(Color.GRAY);
  462. item13.setItemMeta(itemM13);
  463. ItemStack item14 = new ItemStack(Material.LEATHER_CHESTPLATE, 1);
  464. LeatherArmorMeta itemM14 = (LeatherArmorMeta) item14.getItemMeta();
  465. List<String> l14 = new ArrayList<String>();
  466. l14.add(ChatColor.GOLD + "Click to Equip!");
  467. itemM14.setLore(l14);
  468. itemM14.setDisplayName("" + ChatColor.DARK_GRAY + ChatColor.BOLD
  469. + "Black Tunic");
  470. itemM14.setColor(Color.BLACK);
  471. item14.setItemMeta(itemM14);
  472. ItemStack item15 = new ItemStack(Material.LEATHER_LEGGINGS, 1);
  473. LeatherArmorMeta itemM15 = (LeatherArmorMeta) item15.getItemMeta();
  474. List<String> l15 = new ArrayList<String>();
  475. l15.add(ChatColor.GOLD + "Click to Equip!");
  476. itemM15.setLore(l15);
  477. itemM15.setDisplayName("" + ChatColor.YELLOW + ChatColor.BOLD
  478. + "Yellow Leggings");
  479. itemM15.setColor(Color.YELLOW);
  480. item15.setItemMeta(itemM15);
  481. ItemStack item16 = new ItemStack(Material.LEATHER_LEGGINGS, 1);
  482. LeatherArmorMeta itemM16 = (LeatherArmorMeta) item16.getItemMeta();
  483. List<String> l16 = new ArrayList<String>();
  484. l16.add(ChatColor.GOLD + "Click to Equip!");
  485. itemM16.setLore(l16);
  486. itemM16.setDisplayName("" + ChatColor.LIGHT_PURPLE + ChatColor.BOLD
  487. + "Pink Leggings");
  488. itemM16.setColor(Color.FUCHSIA);
  489. item16.setItemMeta(itemM16);
  490. ItemStack item17 = new ItemStack(Material.LEATHER_LEGGINGS, 1);
  491. LeatherArmorMeta itemM17 = (LeatherArmorMeta) item17.getItemMeta();
  492. List<String> l17 = new ArrayList<String>();
  493. l17.add(ChatColor.GOLD + "Click to Equip!");
  494. itemM17.setLore(l17);
  495. itemM17.setDisplayName("" + ChatColor.DARK_RED + ChatColor.BOLD
  496. + "Red Leggings");
  497. itemM17.setColor(Color.RED);
  498. item17.setItemMeta(itemM17);
  499. ItemStack item18 = new ItemStack(Material.LEATHER_LEGGINGS, 1);
  500. LeatherArmorMeta itemM18 = (LeatherArmorMeta) item18.getItemMeta();
  501. List<String> l18 = new ArrayList<String>();
  502. l18.add(ChatColor.GOLD + "Click to Equip!");
  503. itemM18.setLore(l18);
  504. itemM18.setDisplayName("" + ChatColor.BLUE + ChatColor.BOLD
  505. + "Blue Leggings");
  506. itemM18.setColor(Color.BLUE);
  507. item18.setItemMeta(itemM18);
  508. ItemStack item19 = new ItemStack(Material.LEATHER_LEGGINGS, 1);
  509. LeatherArmorMeta itemM19 = (LeatherArmorMeta) item19.getItemMeta();
  510. List<String> l19 = new ArrayList<String>();
  511. l19.add(ChatColor.GOLD + "Click to Equip!");
  512. itemM19.setLore(l19);
  513. itemM19.setDisplayName("" + ChatColor.DARK_GREEN + ChatColor.BOLD
  514. + "Green Leggings");
  515. itemM19.setColor(Color.GREEN);
  516. item19.setItemMeta(itemM19);
  517. ItemStack item20 = new ItemStack(Material.LEATHER_LEGGINGS, 1);
  518. LeatherArmorMeta itemM20 = (LeatherArmorMeta) item20.getItemMeta();
  519. List<String> l20 = new ArrayList<String>();
  520. l20.add(ChatColor.GOLD + "Click to Equip!");
  521. itemM20.setLore(l20);
  522. itemM20.setDisplayName("" + ChatColor.GRAY + ChatColor.BOLD
  523. + "Gray Leggings");
  524. itemM20.setColor(Color.GRAY);
  525. item20.setItemMeta(itemM20);
  526. ItemStack item21 = new ItemStack(Material.LEATHER_LEGGINGS, 1);
  527. LeatherArmorMeta itemM21 = (LeatherArmorMeta) item21.getItemMeta();
  528. List<String> l21 = new ArrayList<String>();
  529. l21.add(ChatColor.GOLD + "Click to Equip!");
  530. itemM21.setLore(l21);
  531. itemM21.setDisplayName("" + ChatColor.DARK_GRAY + ChatColor.BOLD
  532. + "Black Leggings");
  533. itemM21.setColor(Color.BLACK);
  534. item21.setItemMeta(itemM21);
  535. ItemStack item22 = new ItemStack(Material.LEATHER_BOOTS, 1);
  536. LeatherArmorMeta itemM22 = (LeatherArmorMeta) item22.getItemMeta();
  537. List<String> l22 = new ArrayList<String>();
  538. l22.add(ChatColor.GOLD + "Click to Equip!");
  539. itemM22.setLore(l22);
  540. itemM22.setDisplayName("" + ChatColor.YELLOW + ChatColor.BOLD
  541. + "Yellow Boots");
  542. itemM22.setColor(Color.YELLOW);
  543. item22.setItemMeta(itemM22);
  544. ItemStack item23 = new ItemStack(Material.LEATHER_BOOTS, 1);
  545. LeatherArmorMeta itemM23 = (LeatherArmorMeta) item23.getItemMeta();
  546. List<String> l23 = new ArrayList<String>();
  547. l23.add(ChatColor.GOLD + "Click to Equip!");
  548. itemM23.setLore(l23);
  549. itemM23.setDisplayName("" + ChatColor.LIGHT_PURPLE + ChatColor.BOLD
  550. + "Pink Boots");
  551. itemM23.setColor(Color.FUCHSIA);
  552. item23.setItemMeta(itemM23);
  553. ItemStack item24 = new ItemStack(Material.LEATHER_BOOTS, 1);
  554. LeatherArmorMeta itemM24 = (LeatherArmorMeta) item24.getItemMeta();
  555. List<String> l24 = new ArrayList<String>();
  556. l24.add(ChatColor.GOLD + "Click to Equip!");
  557. itemM24.setLore(l24);
  558. itemM24.setDisplayName("" + ChatColor.DARK_RED + ChatColor.BOLD
  559. + "Red Boots");
  560. itemM24.setColor(Color.RED);
  561. item24.setItemMeta(itemM24);
  562. ItemStack item25 = new ItemStack(Material.LEATHER_BOOTS, 1);
  563. LeatherArmorMeta itemM25 = (LeatherArmorMeta) item25.getItemMeta();
  564. List<String> l25 = new ArrayList<String>();
  565. l25.add(ChatColor.GOLD + "Click to Equip!");
  566. itemM25.setLore(l25);
  567. itemM25.setDisplayName("" + ChatColor.BLUE + ChatColor.BOLD
  568. + "Blue Boots");
  569. itemM25.setColor(Color.BLUE);
  570. item25.setItemMeta(itemM25);
  571. ItemStack item26 = new ItemStack(Material.LEATHER_BOOTS, 1);
  572. LeatherArmorMeta itemM26 = (LeatherArmorMeta) item26.getItemMeta();
  573. List<String> l26 = new ArrayList<String>();
  574. l26.add(ChatColor.GOLD + "Click to Equip!");
  575. itemM26.setLore(l26);
  576. itemM26.setDisplayName("" + ChatColor.DARK_GREEN + ChatColor.BOLD
  577. + "Green Boots");
  578. itemM26.setColor(Color.GREEN);
  579. item26.setItemMeta(itemM26);
  580. ItemStack item27 = new ItemStack(Material.LEATHER_BOOTS, 1);
  581. LeatherArmorMeta itemM27 = (LeatherArmorMeta) item27.getItemMeta();
  582. List<String> l27 = new ArrayList<String>();
  583. l27.add(ChatColor.GOLD + "Click to Equip!");
  584. itemM27.setLore(l27);
  585. itemM27.setDisplayName("" + ChatColor.GRAY + ChatColor.BOLD
  586. + "Gray Boots");
  587. itemM27.setColor(Color.GRAY);
  588. item27.setItemMeta(itemM27);
  589. ItemStack item28 = new ItemStack(Material.LEATHER_BOOTS, 1);
  590. LeatherArmorMeta itemM28 = (LeatherArmorMeta) item28.getItemMeta();
  591. List<String> l28 = new ArrayList<String>();
  592. l28.add(ChatColor.GOLD + "Click to Equip!");
  593. itemM28.setLore(l28);
  594. itemM28.setDisplayName("" + ChatColor.DARK_GRAY + ChatColor.BOLD
  595. + "Black Boots");
  596. itemM28.setColor(Color.BLACK);
  597. item28.setItemMeta(itemM28);
  598. ItemStack back = new ItemStack(Material.SLIME_BALL);
  599. ItemMeta backm = back.getItemMeta();
  600. backm.setDisplayName("" + ChatColor.DARK_RED + ChatColor.BOLD
  601. + "Back");
  602. back.setItemMeta(backm);
  603. inv.setItem(10, item1);
  604. inv.setItem(11, item4);
  605. inv.setItem(12, item7);
  606. inv.setItem(13, item3);
  607. inv.setItem(14, item6);
  608. inv.setItem(15, item5);
  609. inv.setItem(16, item2);
  610. inv.setItem(19, item8);
  611. inv.setItem(20, item9);
  612. inv.setItem(21, item10);
  613. inv.setItem(22, item11);
  614. inv.setItem(23, item12);
  615. inv.setItem(24, item13);
  616. inv.setItem(25, item14);
  617. inv.setItem(28, item15);
  618. inv.setItem(29, item16);
  619. inv.setItem(30, item17);
  620. inv.setItem(31, item18);
  621. inv.setItem(32, item19);
  622. inv.setItem(33, item20);
  623. inv.setItem(34, item21);
  624. inv.setItem(37, item22);
  625. inv.setItem(38, item23);
  626. inv.setItem(39, item24);
  627. inv.setItem(40, item25);
  628. inv.setItem(41, item26);
  629. inv.setItem(42, item27);
  630. inv.setItem(43, item28);
  631. inv.setItem(53, back);
  632. p.openInventory(inv);
  633. }
  634. }
  635. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement