Fired when the server begins shutting down.
You can yield for up to 30 minutes to perform shutdown logic. You can also yield to ensure an in-progress match is completed.
When set to true (default), players will be allowed to connect to the server. When set to false, no players will be allowed to join the server, no matter how they are transferred. All transfers to this server will no longer succeed.
AllowNewConnections is automatically set to false when a server shutdown is triggered, but you can override that behavior by setting it back to true when the onShutdown signal is fired. This may be useful in cases where you wish to delay the server shutdown for an extended period and want players to be able to rejoin the server during that time.
If new connections should be allowed
true if the setting was updated, false otherwise
Creates a new server and returns a server id which can be used to transfer players to the new server.
Optional
config: AirshipServerConfigThe configuration the server should start with. If not provided, the server will use the defaults provided during deployment.
The id of the new server. Undefined if the server was not able to be created.
Retrieves the game config passed to this server in the AirshipServerManagerService.CreateServer function. If the configuration cannot be parsed or does not exist, returns undefined.
The game configuration object or undefined.
Gets data about the given server IDs.
An array of server IDs to retrieve
A map of server ID to server data. If the server could not be found, it will not be included in the map.
Lists the current server on the games server list. You can optionally specify a name and description to be passed through to the server list.
Optional
config: { The list configuration to use. Name and description will be passed to the server list data.
Optional
description?: stringOptional
name?: stringTrue if the server was successfully listed.
Removes a userId from the allowed player list. If the allowed players list is empty, all players will be allowed to join. You can get the current allowed players list with AirshipServerManager.GetAllowedPlayers.
The userId of the player
True if the userId was removed, false otherwise.
Allows access to and modification of the game server list.