DUXPLIMA Documentation

commands.conf

The name, aliases and switch of the command and each word under it.

commands {
  uxmmotd {
    name    = "uxmmotd"
    aliases = ["motd"]
    enabled = true
    subcommands {
      reload             { name = "reload" }
      version            { name = "version" }
      maintenance        { name = "maintenance" }
      maintenance-on     { name = "maintenance on" }
      maintenance-off    { name = "maintenance off" }
      maintenance-status { name = "maintenance status" }
      doctor             { name = "doctor" }
    }
  }
}
KeyWhat it does
nameThe label typed
aliasesOther labels
enabledfalse and the command is never registered
localized-aliasesWords for the readers of one language
subcommandsOne block per word; enabled = false takes that word out

A word under a word is written with a hyphen on the left and a space on the right: maintenance-on is the key under which maintenance on is named. A change needs a restart. A renamed word keeps its node.

Related: Commands