Hi! Before PocketMine update I had little Minigame where are some items... When you have certain item selected, then it changes your XP bar to some value. I used MobEquipmentPacket. But, this update make this method unusable. Here is my code and error: Edit: The only way that I found is to change from Private to Public $itemStack in ItemStackWrapper... I would just be interested if there is any other way than editing source
You can use $packet->item->getItemStack() Though you should really use PlayerItemHeldEvent instead of that, you wont need to care about changes in the protocol