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

how to set armor ?

Discussion in 'General discussion' started by Jules, Aug 5, 2018.

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

    Jules Witch

    Messages:
    53
    GitHub:
    Julooooos
    i use this but didn't work.

    PHP:
    $player->getInventory()->setHelmet($helmet);
     
  2. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    In what way does it not work?
     
  3. SalmonDE

    SalmonDE Zombie Pigman

    Messages:
    739
    GitHub:
    SalmonDE
    Try this:
    PHP:
    $player->getArmorInventory()->setHelmet($helmet);
     
    Muqsit and corytortoise like this.
  4. Jules

    Jules Witch

    Messages:
    53
    GitHub:
    Julooooos
    work !
     
Thread Status:
Not open for further replies.
  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.