Custom Player Skull

Discussion in 'Spigot Plugin Development' started by Pilchard2002, Apr 20, 2017.

  1. Code (Text):
    ItemStack item_skull = new ItemStack(Material.SKULL_ITEM);
            ItemMeta meta_skull = item_skull.getItemMeta();
            meta_skull.setDisplayName(ChatColor.GREEN + "Bear");
    Hello, I'm using the code above to create and modify metadata of an item? How does one put a custom texture on a skull? I've been looking around and everything I've found I don't understand.

    Anyone able to give an explanation on how? Thanks

    Kind Regards, Lachlan
  2. Use SkullMeta Instead of ItemMeta and then meta_skull#setOwner("head name");
  3. He said something about custom texture so using a normal player doesn't work when he doesn't have the custom texture as a skin.

    This should help you.