When I use this event and try to send a message to a player when the item has a custom name, the item isnt consumed public function onConsume(PlayerItemConsumeEvent $e) { $player = $e->getPlayer(); $item = $e->getItem(); if($item->hasCustomName()) { $player->sendMessage("Test"); }} This is the code, but it doesnt work right