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

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

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

  1. radondev

    radondev Silverfish

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

    MalakasPlayzMCPE Zombie Pigman

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

    radondev Silverfish

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

    MalakasPlayzMCPE Zombie Pigman

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

    radondev Silverfish

    Messages:
    21
    GitHub:
    radondev
    Forget what I said. I just looked at the functions phpstorm showed me :facepalm:
     
  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.