How do I make it when I press a button on a form using FormApi that it teleports the player to a certain coordinate in a certain world?
do you know the API of FormAPI well? There are many examples on the forum. And for the player's teleport you can use the Postion class to teleport a player to a specific world with specific coordinates Exemple PHP: $player->teleport(new Position($x, $y, $z, $level));//NOTE : $level is not name of the world is instance of Level
you must change the values $x, $y, $z to numeric values (0 or 0.5 ...). DOC: https://github.com/pmmp/PocketMine-...801782c/src/pocketmine/level/Position.php#L41 and to retrieve the world from the name you can use the getLevelByName function (string $world); with a Server instance Example: PHP: $level = $this->getServer()->getLevelByName("world"); DOC: https://github.com/pmmp/PocketMine-...1a9b1bcf722b7/src/pocketmine/Server.php#L1039