ItemStack Skull Error

Discussion in 'Spigot Plugin Development' started by Dantesudante, Jun 1, 2017.

  1. Hi, It give me an Error in Console when Server is enabling:
    The Skin of (owner) Skull doesn't work


    Code (Text):
       public ItemStack head = createItem(new ItemStack(Material.SKULL_ITEM, 1, (byte) 3), "MHF_Chest");
      public ItemStack createItem(ItemStack item, String name) {
            SkullMeta meta = (SkullMeta) item.getItemMeta();
            return item;