DUXPLIMA Documentation

Custom commands

Commands of your own with permissions, argument counts, conditions, actions, cooldowns and argument tokens.

Module: custom-commands. Each block of modules/custom-commands/custom-commands.conf is a command. Read at start; a change needs a restart.

KeyMeaning
enabledfalse leaves it out
aliasesMore names for it
descriptionShown in the command list
permissionNeeded to run it; empty lets everyone
min-args, max-argsHow many words may follow it; max-args = -1 has no limit
usageThe line a player reads with the wrong number of words; @ for a messages line
conditionsuxmLib condition lines; all must hold
actionsuxmLib action lines run when they hold
deniedAction lines run when one does not
cooldown-secondsHow long one player waits between two runs
TokenValue
{player}The player's name
{args}Every word
{arg1}, {arg2}...One word each
{args2}, {args3}...Every word from that one on

A word holds only letters, digits, _, . and -; anything else is dropped, so a word can never become a second command.

Shipped

CommandDoes
/discordA clickable Discord invite
/store (/shop, /buy)A clickable store link
/report <player> <reason>Runs helpop Report on {arg1}: {args2} as the player and thanks them; node uxmchat.command.report, 60 second cooldown

Related: custom-commands.conf