Skip to content

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.

SetServerData(key, value)
Parameter Type
key string the key
value string | nil the value; nil removes the key

nothing

SetServerData("rounds_played", tostring(rounds))

GetServerData · SetSavedData · the Storage and persistence group of the index