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

Check item that player put to hand

Discussion in 'Development' started by kaliiks, Feb 25, 2017.

  1. kaliiks

    kaliiks Zombie

    Messages:
    250
    How check what item player put to hand
     
    Last edited: Feb 25, 2017
  2. Sandertv

    Sandertv Zombie Pigman Poggit Reviewer

    Messages:
    786
    GitHub:
    Sandertv
    $player->getInventory()->getItemInHand();
     
  3. kaliiks

    kaliiks Zombie

    Messages:
    250
    want check when player change from another item to another item[/QUOTE]
     
  4. Sandertv

    Sandertv Zombie Pigman Poggit Reviewer

    Messages:
    786
    GitHub:
    Sandertv
    [/QUOTE]
    Use PlayerItemHeldEvent.
     
    jasonwynn10 likes 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.