Skip to content

SetSecretCommand

Declares a chat command secret - the clients mask its argument as it is typed.

For a mode’s own /login <password> and /register <password>: from the call on, a player typing that command sees the argument as asterisks on their chat line, and the Up arrow never recalls the line. Declare at init; the list reaches every client and a reload empties it. The server never echoes or logs a command’s argument itself - what the mode’s own Log lines carry is the mode’s business.

SetSecretCommand(name [, secret])
Parameter Type
name string the command’s name, with or without the slash (case-insensitive)
secret boolean false shows it again (true without) (optional)

nothing

function OnGameModeInit()
SetSecretCommand("register")
SetSecretCommand("login")
end

HashPassword · VerifyPassword · GetDatabase · the Accounts, admins, bans and the audit group of the index