Static function
Fast
Server.SetMaxPlayers
Sets the maximum player slots of the server, optionally overrides Config.toml
Syntax
Server.SetMaxPlayers(max_players, persist_to_config_file = false)
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
max_players
|
integer | — | The maximum players |
persist_to_config_file
optional
|
boolean | false |
Persist to config file |