Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-6558

SkullMeta not working

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • None
    • Windows 10

    • This server is running CraftBukkit version 3138-Spigot-66f9d3c-77058c7 (MC: 1.17) (Implementing API version 1.17-R0.1-SNAPSHOT)
    • InfoHeads
    • Yes

      I'm quite sure that it is a bug.
      I can't create a skull with an owning player.
      When I try to create a skull with the classic method and I try to apply a skull owner for the texture it does not give any error but it gives me a steve head.
       

      ItemStack item = new ItemStack(Material.PLAYER_HEAD);
      SkullMeta meta = (SkullMeta) item.getItemMeta();
      meta.setOwningPlayer(Bukkit.getOfflinePlayer("MHF_Chest"));
      item.setItemMeta(meta);
      player.getInventory().addItem(item);
      

       
      If I use this code in 1.16.x it works fine, but if I use it in 1.17 it does not work.
      If I try to edit it after given it works.

      Spigot Thread: https://www.spigotmc.org/threads/skullmeta-not-working.510818

            Unassigned Unassigned
            Lorenzo0111 Lorenzo
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: