Server
Quick Reference
| Name | Type | Description |
|---|---|---|
| Stop | Server | Stops the server. |
| Restart | Server | Restarts the server. |
| GetName | Server | Returns the server name. |
| SetName | Server | Sets the name of the server. |
| GetMaxPlayers | Server | Returns the max players configured. |
| SetMaxPlayers | Server | Sets the maximum player slots of the server. |
| GetVersion | Server | Returns the server version. |
Server Functions
Stop
Stops the server and shows all players the specified reason (optional).
Server.Stop([optional] string reason)
Restart
Restarts the server and reconnect all players.
Server.Restart()
GetName
Returns the server name.
string name = Server.GetName()
SetName
Sets the name of the server.
Server.SetName(string name)
GetMaxPlayers
Returns the max players configured.
int maxPlayers = Server.GetMaxPlayers()
SetMaxPlayers
Sets the maximum player slots of the server.
Server.SetMaxPlayers(int maxPlayers)
GetVersion
Returns the server version.
string version = Server.GetVersion()