Settings

February 18, 2015 ยท View on GitHub

settings

The settings library can be used to get and set data that you wish to store.

The settings library is global and does not need to be imported.

get

settings are easily read using the settings global.

print("the port is " .. settings.port);

For keys containing spaces or other invalid names/characters:

settings["foo bar 123"];

set

settings can just as easily be changed.

settings.port = 8080;

For keys containing spaces or other invalid names/characters:

settings["foo bar 123"] = "hello world!";