Player Skulls in CraftBukkit 1.14

Discussion in 'Plugin Development' started by Kaaaj, Sep 2, 2019.

  1. Offline

    Kaaaj

    Hi, I'm trying to make adminplugin for my minecraft server and I thought it would be nice to have all player heads in an inventory. I did some research on youtube, and they all make a new ItemStack(Material.SKULL_ITEM). The problem for me is that SKULL_ITEM does not exist in my version... What is the name of the current material I need?? Thank you already!!

    Never mind! I looked at the suggested materials and in that list was Material.PLAYER_HEAD. That works fine :)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Sep 2, 2019
  2. Offline

    wand555

    Maybe not directly part of your question, but I think you have to load a players head so it updates from the steve head into the players head.
     

Share This Page