Advertisement
Guest User

Untitled

a guest
Feb 20th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.93 KB | None | 0 0
  1. private void openBlackShop(Player p) {
  2. Inventory shop = Bukkit.createInventory(p, 9 * 5, "§8Mercado §lNEGRO§r§7 (Loja)");
  3.  
  4. /*
  5. * CAPACETE
  6. */
  7. ItemStack capacete = new ItemStack(Material.DIAMOND_HELMET);
  8. ItemMeta capacetem = capacete.getItemMeta();
  9. capacetem.setDisplayName("§eCapacete P6");
  10. ArrayList<String> capacetel = new ArrayList<>();
  11. capacetel.add("§7Proteção VI");
  12. capacetel.add("§7Inquebrável III");
  13. capacetel.add(" ");
  14. capacetel.add("§ePreço:§a 16 cabeças");
  15. capacetem.setLore(capacetel);
  16. // Glow glow = new Glow(-1412);
  17. // capacetem.addEnchant(glow, 1, true);
  18. capacete.setItemMeta(capacetem);
  19.  
  20. /*
  21. * PEITORAL
  22. */
  23. ItemStack peitoral = new ItemStack(Material.DIAMOND_CHESTPLATE);
  24. ItemMeta peitoralm = peitoral.getItemMeta();
  25. peitoralm.setDisplayName("§ePeitoral P6");
  26. ArrayList<String> peitorall = new ArrayList<>();
  27. peitorall.add("§7Proteção VI");
  28. peitorall.add("§7Inquebrável III");
  29. peitorall.add(" ");
  30. peitorall.add("§ePreço:§a 16 cabeças");
  31. peitoralm.setLore(peitorall);
  32. // peitoralm.addEnchant(glow, 1, true);
  33. peitoral.setItemMeta(peitoralm);
  34.  
  35. /*
  36. * CALÇAS
  37. */
  38. ItemStack calcas = new ItemStack(Material.DIAMOND_LEGGINGS);
  39. ItemMeta calcasm = calcas.getItemMeta();
  40. calcasm.setDisplayName("§eCalça P6");
  41. ArrayList<String> calcasl = new ArrayList<>();
  42. calcasl.add("§7Proteção VI");
  43. calcasl.add("§7Inquebrável III");
  44. calcasl.add(" ");
  45. calcasl.add("§ePreço:§a 16 cabeças");
  46. calcasm.setLore(calcasl);
  47. // calcasm.addEnchant(glow, 1, true);
  48. calcas.setItemMeta(calcasm);
  49.  
  50. /*
  51. * BOTAS
  52. */
  53. ItemStack botas = new ItemStack(Material.DIAMOND_BOOTS);
  54. ItemMeta botasm = botas.getItemMeta();
  55. botasm.setDisplayName("§eBotas P6");
  56. ArrayList<String> botasl = new ArrayList<>();
  57. botasl.add("§7Proteção VI");
  58. botasl.add("§7Inquebrável III");
  59. botasl.add(" ");
  60. botasl.add("§ePreço:§a 16 cabeças");
  61. botasm.setLore(botasl);
  62. // botasm.addEnchant(glow, 1, true);
  63. botas.setItemMeta(botasm);
  64.  
  65. /*
  66. * silkpick
  67. */
  68. ItemStack silkpick = new ItemStack(Material.DIAMOND_PICKAXE);
  69. ItemMeta silkpickm = silkpick.getItemMeta();
  70. silkpickm.setDisplayName("§8Mobspawner DROPER");
  71. ArrayList<String> silkpickl = new ArrayList<>();
  72. silkpickl.add("§7Toque Suave X");
  73. silkpickl.add(" ");
  74. silkpickl.add("§ePreço:§a 35 cabeças");
  75. silkpickm.setLore(silkpickl);
  76. // silkpickm.addEnchant(glow, 1, true);
  77. silkpick.setItemMeta(silkpickm);
  78.  
  79. /*
  80. * money1kk
  81. */
  82. ItemStack money1kk = new ItemStack(Material.PAPER);
  83. ItemMeta money1kkm = money1kk.getItemMeta();
  84. money1kkm.setDisplayName("§21kk§f de money");
  85. ArrayList<String> money1kkl = new ArrayList<>();
  86. money1kkl.add(" ");
  87. money1kkl.add("§ePreço:§a 13 cabeças");
  88. money1kkm.setLore(money1kkl);
  89. money1kk.setItemMeta(money1kkm);
  90.  
  91. /*
  92. * espada
  93. */
  94. ItemStack espada = new ItemStack(Material.DIAMOND_SWORD);
  95. ItemMeta espadam = espada.getItemMeta();
  96. espadam.setDisplayName("§eEspada");
  97. ArrayList<String> espadal = new ArrayList<>();
  98. espadal.add("§7Afiação VI");
  99. espadal.add("§7Inquebrável III");
  100. espadal.add(" ");
  101. espadal.add("§ePreço:§a 12 cabeças");
  102. espadam.setLore(espadal);
  103. // espadam.addEnchant(glow, 1, true);
  104. espada.setItemMeta(espadam);
  105.  
  106. /*
  107. * arco
  108. */
  109. ItemStack arco = new ItemStack(Material.BOW);
  110. ItemMeta arcom = arco.getItemMeta();
  111. arcom.setDisplayName("§eArco");
  112. ArrayList<String> arcol = new ArrayList<>();
  113. arcol.add("§7Força v");
  114. arcol.add("§7Inquebrável III");
  115. arcol.add("§7Infinidade I");
  116. arcol.add(" ");
  117. arcol.add("§ePreço:§a 6 cabeças");
  118. arcom.setLore(arcol);
  119. // arcom.addEnchant(glow, 1, true);
  120. arco.setItemMeta(arcom);
  121.  
  122. /*
  123. * capiroto
  124. */
  125. ItemStack capiroto = new ItemStack(Material.GOLDEN_APPLE, 25, (short) 1);
  126. ItemMeta capirotom = capiroto.getItemMeta();
  127. capirotom.setDisplayName("§5Maçã Dourada");
  128. ArrayList<String> capirotol = new ArrayList<>();
  129. capirotol.add(" ");
  130. capirotol.add("§ePreço:§a 3 cabeças");
  131. capirotom.setLore(capirotol);
  132. capiroto.setItemMeta(capirotom);
  133.  
  134. /*
  135. * money2kk
  136. */
  137. ItemStack money2kk = new ItemStack(Material.PAPER);
  138. ItemMeta money2kkm = money2kk.getItemMeta();
  139. money2kkm.setDisplayName("§22kk§f de money");
  140. ArrayList<String> money2kkl = new ArrayList<>();
  141. money2kkl.add(" ");
  142. money2kkl.add("§ePreço:§a 26 cabeças");
  143. money2kkm.setLore(money2kkl);
  144. money2kk.setItemMeta(money2kkm);
  145.  
  146. shop.setItem(10, capacete);
  147. shop.setItem(19, peitoral);
  148. shop.setItem(28, calcas);
  149. shop.setItem(37, botas);
  150. shop.setItem(42, money1kk);
  151. shop.setItem(43, money2kk);
  152. shop.setItem(16, silkpick);
  153. shop.setItem(15, espada);
  154. shop.setItem(14, arco);
  155. shop.setItem(11, capiroto);
  156. p.updateInventory();
  157. p.closeInventory();
  158. p.updateInventory();
  159. p.openInventory(shop);
  160. p.updateInventory();
  161. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement