PHP: $player->transfer($address, $port, $message); $player is an instance of \pocketmine\Player (the player to be transferred) $address is a string (the IP or domain of the server) optional $port is an int (the port of the server) optional $message is a string (kick message to use)