Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public ItemStack addItem(final Material material, final String lore, final String itemname, final int amount) {
- final ItemStack item = new ItemStack(material, amount);
- final ItemMeta im = item.getItemMeta();
- im.setLore(Arrays.asList(lore));
- im.setDisplayName(itemname.replace("&", "§"));
- item.setItemMeta(im);
- return item;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement