UnEquip armor?

Discussion in 'Plugin Development' started by KittyKatt, Nov 16, 2013.

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

    KittyKatt

    Is there a way to unequip armor of a player? Or should I give armor item and delete items in armor slots?
     
  2. Offline

    ArthurMaker

    KittyKatt
    player.getInventory().setArmorContents(null);

    This will delete all the armor contents.
    But, for inventory contents, you should use:

    player.getInventory().clear();
     
    2016mfransen likes this.
Thread Status:
Not open for further replies.

Share This Page