For the complete documentation index, see llms.txt. This page is also available as Markdown.

Configuration

General

modules:
  # Allows to create custom commands with args, cooldown and actions.
  # The chat reload does not apply to the Custom Commands module,
  # you must restart the server if you make any changes or if you add or remove commands.
  #
  # Custom Commands module loaded from modules/customcommands/*.yml
  custom-commands: true
  • modules.custom-commands: Enable/disable the module.


Module

Name

name: heal

The primary name of the command.

This is the command players will execute.

Aliases

Alternative names that execute the same command.


Arguments

Defines how many arguments the command accepts.

Min

Minimum number of required arguments.

Max

Maximum number of allowed arguments.

Use -1 to allow unlimited arguments.

Usage

Usage message shown to the player through {usage}.

Usage-actions

Actions executed when the player provides an invalid number of arguments.


Permission

Permission required to execute the command.

Remove this option or leave it empty to allow every player to use the command.

Cooldown

Cooldown in seconds before the player can use the command again.

Set to 0 to disable the cooldown.

Actions

Check actions here.

Available placeholders

Placeholder
Description

{player}

Player executing the command.

{arg0}

First argument.

{arg1}

Second argument.

{arg2}

Third argument.

{args}

All arguments joined into a single string.

Last updated