1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Get Armor with custom name

Discussion in 'Development' started by A354-PH, Jul 28, 2019.

  1. A354-PH

    A354-PH Baby Zombie

    Messages:
    186
    GitHub:
    Kizu
    How to get a player's armor(like chestplate) with a custom name in it?
     
  2. LousWiteMC

    LousWiteMC Spider

    Messages:
    6
    GitHub:
    LousWiteMC
    use pocketmine\inventory\ArmorInventory;
    use pocketmine\inventory\InventoryBase;

    $inv = $player->getArmorInventory();
    $chestplate = $inv->getChestplate();
     
    DaisukeDaisuke and HimbeersaftLP like this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.