Hey! I'm creating a plugin to make it so if you do /staff there's a bunch of player heads there, with the names of all the server staff. But, I'm having trouble adding it. I know how to add materials, though not player heads. Any help is appreciated.
Oh.. Ill go google that. Any other ideas? By the way, if I cant do that do you know how I can item names? EDIT by Moderator: merged posts, please use the edit button instead of double posting.
SugarCraft Heads as in skulls (like wither skulls, zombie skulls, and creeper skulls)? You can do that: Code:java ItemStack skull = new ItemStack(Material.SKULL_ITEM);SkullMeta meta = (SkullMeta) skull.getItemMeta();meta.setOwner("chasechocolate");skull.setItemMeta(meta);
Phasesaber Right now you're only using the SKULL_ITEM without setting a durability. That means that it's a Skeleton head, the durability for a player head is 3. Code: ItemStack skull = new ItemStack(Material.SKULL_ITEM, 1, (short) 3); That should work when you set the owner now.