can anyone help me with this. I’m trying to teleport a player to a different world on PlayerInteractEvent. Thanks!
on PlayerInteractEvent: PHP: $event->getPlayer()->teleport($this->getServer()->getLevelByName("differentWorldName")->getSafeSpawn());