So, im trying to make something like this: player pickups the bricks, his score increases, but bricks should not appear in his inventory, and bricks should disappear from the world. Solution: PHP: public function onPick(InventoryPickupItemEvent $e){ $p = $e->getHolder(); if($e->getItem()->getItem()->getId() == 336){ $e->setCancelled(); $p->sendMessage("You picked up the brick"); $e->getItem()->close(); } }