SetServerData
Saves a value in the server-wide store (data/server.json).
One key/value store for the mode, persisted beside the player records; strings, nil removes the key. A record for the
whole server: rounds played, a leaderboard, the last map rotation.
Syntax
Section titled “Syntax”SetServerData(key, value)| Parameter | Type | |
|---|---|---|
key |
string | the key |
value |
string | nil | the value; nil removes the key |
Returns
Section titled “Returns”nothing
Example
Section titled “Example”SetServerData("rounds_played", tostring(rounds))See also
Section titled “See also”GetServerData · SetSavedData · the Storage and persistence group of the index
