Solved How to get the player that picked up an item?

Discussion in 'Development' started by radondev, Dec 4, 2018.

  1. radondev

    radondev Spider

    Messages:
    6
    GitHub:
    radondev
    How to get the player that picked up an item using:
     
  2. MalakasPlayzMCPE

    MalakasPlayzMCPE Zombie Pigman

    Messages:
    593
    $player = $event->getInventory()->getHolder();
     
  3. radondev

    radondev Spider

    Messages:
    6
    GitHub:
    radondev
    This function doesn't exist for me. I can just get the viewers.
     
  4. MalakasPlayzMCPE

    MalakasPlayzMCPE Zombie Pigman

    Messages:
    593
    Send us your code and the error you got trying what I said.
     
    radondev likes this.
  5. radondev

    radondev Spider

    Messages:
    6
    GitHub:
    radondev
    Forget what I said. I just looked at the functions phpstorm showed me :facepalm:
     

Share This Page

  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.