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

Solved How to get item ID on InventoryPickupItemEvent

Discussion in 'Development' started by Yexeed, Oct 17, 2017.

  1. Yexeed

    Yexeed Slime

    Messages:
    76
    I'm tried to use $e->getItem()->getId() but it returning id of entity, but not 336 (what it should be)

    UPD: So, using $e->getItem()->getItem()->getId() helped.
     
  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.