Use Platform.Server.ServerManager.onShutdown
instead.
If true, players are automatically transfered into a new server when the server shuts down.
We try to transfer all players to the same server so they stay together.
Transfers a group of players to the provided game. A server in the default scene will be selected, or a new one will be created.
The players to transfer, either userIds or Player objects
The gameId to transfer the players to
Optional
config: AirshipGameTransferConfigThe configuration to be used for this transfer AirshipGameTransferConfig
Transfers a group of players to a server that matches the provided configuration. If any of the configuration parameters are missing, they will be ignored when selecting a server.
The players to transfer, either userIds or Player objects
The configuration for selecting a server. AirshipMatchingServerTransferConfig
Transfers a group of players to another player. The target player must be in the current game.
The players to transfer, either userIds or Player objects
The userId of the target player.
Optional
config: AirshipPlayerTransferConfigThe configuration for the transfer AirshipPlayerTransferConfig
Transfers a group of players to the provided server. The target server must be part of the same game.
The server to transfer the players to
Optional
config: AirshipServerTransferConfigThe configuration to be used for this transfer AirshipGameTransferConfig
Transfers a player to the provided game. A server in the default scene will be selected, or a new one will be created.
The player to transfer, either userId or Player object
The gameId to transfer the player to
Optional
config: AirshipGameTransferConfigThe configuration to be used for this transfer AirshipGameTransferConfig
Transfers a player to a server that matches the provided configuration. If any of the configuration parameters are missing, they will be ignored when selecting a server.
The configuration for selecting a server. AirshipMatchingServerTransferConfig
Transfers a group of players to another player. The target player must be in the current game.
The player to transfer, either userId or Player object
The userId of the target player.
Optional
config: AirshipPlayerTransferConfigThe configuration for the transfer AirshipPlayerTransferConfig
Transfers a player to the provided server. The server can be in any scene, but must be part of the current servers game.
The player to transfer, either userIds or Player objects
The server to transfer the player to
Optional
config: AirshipServerTransferConfigThe configuration to be used for this transfer AirshipGameTransferConfig
The transfer service allows you to move players between servers and create new servers.