I try cancel PlayerInteractEvent, when Player try to open door Event triggers, but $event->setCancelled(true) doesn't work :c
PHP: public function onTap(PlayerInteractEvent $event){ if ($event->getBlock()->getId() == 324){ $event->setCancelled(true); var_dump(true); // to check, if event is triggeres }} in console: (boolean) true