This is what I am using... PHP: $pos = new Vector3($x,$y,$z);$level = $this->getServer()->getLevelByName($world);$player->teleport($level->getSafeSpawn($pos)); Allthough, I think you could also do: PHP: $player->teleport(new Position($x,$y,$z,$level));
I think you are looking for PHP: $player->teleport(new Position($x, $y, $z, $this->getServer()->getLevelByName("level name"))); As @aliuly said