I've set up a very simple plugin in which when a player dies, they drop rotten flesh. I want the dropped rotten flesh to change its name into "Human Flesh"? I know, this is a very nubby question =p Code: @EventHandler public void onDeath (PlayerDeathEvent event){ final ItemStack rotten = new ItemStack(Material.ROTTEN_FLESH, 1); final ItemMeta im = rotten.getItemMeta(); im.setDisplayName("Human Flesh"); rotten.getItemMeta().setDisplayName("Human Flesh"); event.getDrops().add(rotten); }
You should mark this thread as solved, just like closing it http://forums.bukkit.org/threads/how-do-i-mark-this-thread-as-solved.118272/#post-1469644