Put armour on a player

Discussion in 'Plugin Development' started by JOPHESTUS, Jul 31, 2012.

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

    JOPHESTUS

    Hello,

    I was just wondering how would I put armour straight on a player, rather than putting it in a slot in their inv.

    Thanks
    this is a photo of my (open)

    [​IMG]
    Show Spoiler
     
  2. Offline

    sd5

    You can't... The only way is:
    Code:
    player.getInventory().setBoots(...);
    player.getInventory().setChestplate(...);
    player.getInventory().setHelmet(...);
    player.getInventory().setLeggings(...);
    
    or
    Code:
    player.getInventory().setArmorContents(...);
     
    McLuke500 likes this.
  3. Offline

    JOPHESTUS

    By
    I meant put it in the armour slots, not somewhere else. Sorry if I wasn't clear, and thanks sd5
     
  4. Offline

    sd5

    Oh, I thought you were searching something like
    Code:
    player.setArmor(...);
     
Thread Status:
Not open for further replies.

Share This Page