Player heads

Discussion in 'Plugin Development' started by avatarDr, Jan 7, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    avatarDr

    How to make head with player's name?
    Both SkullMeta.setOwner() and SkullMeta.setDisplayName() give no result.

    As I understand, there should be way to even make heads with skin of player.
     
  2. Offline

    Terradominik

    i never tried it, but i think it simply is skull.setOwner("Name"); (from Skull not from SkullMeta)
     
  3. Offline

    avatarDr

    Skull is the interface of block, not item.

    Well, how to change name of any item?
    I use .setDisplayName(), but the debug at next string shows that itemStack does not have displayed name.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 8, 2016
  4. Offline

    fireblast709

    in a few steps:
    • get the ItemMeta (.getItemMeta())
    • set the DisplayName on that ItemMeta
    • set the ItemMeta on the stack (.setItemMeta(ItemMeta))
    Same accounts for SkullMeta, you have to set the ItemMeta again
     
Thread Status:
Not open for further replies.

Share This Page