Just make a command and do PHP: $pk = new TransferPacket ();$pk->adress = "The ip of the server";$pk->port = "The port of the server";$sender->dataPacket ( $pk );
But then again, PocketMine handles it better. Try not reinventing bicycles. PHP: /** @var Player $player */$player->transfer(IP, port);
See also Hormones, which also does this but selects the most free target server from a list of servers in a network to balance the load.