Skip to content

nut.flag

Flag System.

Manages character permissions and abilities through single-character flags. Flags must be single characters, though they are case-sensitive, meaning 'T' and 't' are separate flags.

Functions

nut.flag.add (flag, desc, callback)
nut.flag.add

Adds a flag that does something when set.

Parameters:

string flag Single-character flag identifier

string desc Description of the flag's purpose

function callback optional Function(client, isGiven) called when flag is granted/revoked