How would I create a method to rename ItemStacks like you see on large servers in the inventories. I tried setting display name and that does not work.
you want to get the itemstack at hand first, get that metadata, set the display name and lore through the metadata, then set the itemstack's metadata to the new metadata: Code:java ItemStack i = new ItemStack(Material.STONE);ItemMeta meta = i.getItemMeta();ArrayList<String> lore = new ArrayList<String>();lore.add("This is lore");meta.setLore(lore);meta.setDisplayName("Not Stone");i.setItemMeta(meta)