I want to move to another world with / sur join and when I leave the server and re-enter send me where I was not to the lobby someone help me
Code for teleporting a player to the spawn point in your default world: PHP: $level = $this->getServer()->getDefaultLevel();$spawnPos = $level->getSpawnLocation();$player->teleport($spawnPos);