Give player predefined heads

Discussion in 'Plugin Development' started by Meatiex, Jun 1, 2013.

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

    Meatiex

    I want to give my players my players head when they join the game, can anyone help me, I really don't know where to start to give players heads with names...
    Thanks, Meatie!
     
  2. Offline

    chasechocolate

  3. Offline

    Meatiex

  4. Offline

    chasechocolate

    ItemStack skull = new ItemStack(397, 1, (short) 3);
    SkullMeta meta = (SkullMeta) skull.getItemMeta();
    meta.setOwner("Notch");
    skull.setItemMeta(meta);
    player.getInventory().addItem(skull);
     
  5. Offline

    Zach_1919

    Meatiex Well who's head do you want it to be? Maybe make a config and get the name from there, or from a command argument.
     
  6. Offline

    Meatiex

    Thank you soo much!

    No, Its to give the player a specific head.
     
  7. Offline

    Zach_1919

Thread Status:
Not open for further replies.

Share This Page