- Documentation
- Server functions
- getServerConfigSetting
Function
getServerConfigSetting
A function for reading a setting from the server configuration file.
Syntax
any getServerConfigSetting(string name)Arguments
namestring- Setting name.
Returns
Always false in this version.
Example
local value = getServerConfigSetting("max_slots") or getMaxPlayers()
Notes
Limitation. The server does not expose server-config.json to scripts (it contains the server key, among others). Read server data with getServerName, getServerPort, getMaxPlayers.