Greetings, I would make a code which for example let’s players break stone blocks in a world but the other blocks doesn’t. I’m new at coding, so I need some help with this. Hope you could understand. Thanks a lot in advance!
PHP: public function onBreak(BlockBreakEvent $event): void { if($event->getPlayer()->getLevel()->getName() === "level name") { $event->setCancelled(); }} You could also use switch() if you want to check multiple worlds