Advertisement
GemsMC

Untitled

Apr 2nd, 2020
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. public ItemStack addItem(final Material material, final String lore, final String itemname, final int amount) {
  2. final ItemStack item = new ItemStack(material, amount);
  3. final ItemMeta im = item.getItemMeta();
  4. im.setLore(Arrays.asList(lore));
  5. im.setDisplayName(itemname.replace("&", "§"));
  6. item.setItemMeta(im);
  7. return item;
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement