herro. How do I add a window on player interact\tap event? PHP: public function onTap(PlayerInteractEvent $event) { $player = $event->getPlayer(); $item = $player->getInventory()->getItemInHand()->getId(); if($item === 345){ // popup a window/chest with some items }}
you could at least try searching your question before posting... https://forums.pmmp.io/threads/chest.2583/#post-27000 https://forums.pmmp.io/threads/enderchests.1023/#post-12678