PHP: public function onPlace(BlockPlaceEvent $ev): void{ $item = $ev->getItem(); if($item->getId() === Item::TNT){ $ev->getBlock()->ignite(); }}
You should set the event's priority to lowest and check if the event is cancelled first. Placing tnts to the lobby world will make them explode even if the event is cancelled.