PHP: if(count($this->players) >= 1){ foreach($this->players as $pl){ $pl->sendMessage(TextFormat::GOLD."[GAME] ".$pl->getName()." joined GAME !."); $this->getServer()->loadLevel("test"); $pl->teleport(new Position(137,156,-32, $this->getServer()->getLevelByName("test")));//the position not work ..... For teleport player in level its work why ???
So by "Not work", explain more, at least say "nothing happened". "Not work" can have many meanings, including crashing, getting your player teleported to Herobrine, getting @shoghicp join your server, or getting sharks swimming on your server. (I know, I'm just listing events that are less and less likely to happen) And did your player move at all? And did any other messages on the client, on console, and did you set debug.level to 2?
He means the player teleports on the current world spawn, try teleporting player first to world and next teleport to position? I dont know