DUXPLIMA Documentation

commands.conf

Renaming, aliasing and switching off every command and branch, and words per language.

Three commands, each renameable without touching the code:

KeyNameAliases
plotplotplots
contestcontestcontests
uxmplotsuxmplotsplotadmin
KeyMeaning
nameThe label a player types, without the slash
aliasesOther labels for the same command
enabledfalse and the command is never registered
subcommandsEach branch by its key, with its own name, aliases and enabled
localized-aliasesWords per language tag: localized-aliases { tr = ["arsa"] }

Switching a branch off

Two ways:

subcommands { doctor { enabled = false } }   # the word leaves the command tree
subcommands { doctor = false }               # the word stays and the command refuses it

Words per language

plot {
  name = "plot"
  localized-aliases { tr = ["arsa"] }
}

The tag is a language (tr) or a language and a country (pt-BR). The key on the left never changes. A word on a command works for anyone who types it; only a player reading that language finds it among their commands. A word under subcommands is shown to, and works for, readers of that language and the console. A branch not listed keeps its name from the code. A change needs a restart.

Related: Commands