Dynamic Commands
Overview
Section titled “Overview”RexChat lets you define custom commands entirely in config.yml. These commands display configurable messages and support aliases, permissions, and PlaceholderAPI.
Configuration
Section titled “Configuration”commands: discord: enabled: true command: "discord" aliases: ["dc"] permission: "" message-list: - "%rc_prefix%&6Discord Server" - "&7• &fJoin our community: &6https://discord.gg/yourserver"
rules: enabled: true command: "rules" aliases: ["rule"] permission: "" message-list: - "%rc_prefix%&6Server Rules" - "&7• &fBe respectful to all players" - "&7• &fNo spamming or excessive caps"
store: enabled: true command: "store" aliases: ["shop"] permission: "" message: "%rc_prefix%&6Store &7• &fVisit our store: &6https://store.yourserver.com"Options
Section titled “Options”| Key | Description | Required |
|---|---|---|
enabled | Enable/disable this command | Yes |
command | The command name (without /) | Yes |
aliases | Alternative command names | No |
permission | Required permission (empty = no permission needed) | No |
message | Single-line message | One of these |
message-list | Multi-line message | One of these |
Message vs Message-List
Section titled “Message vs Message-List”Use message for a single line:
message: "%rc_prefix%&6Visit our store!"Use message-list for multiple lines:
message-list: - "%rc_prefix%&6Server Rules" - "&7• &fRule one" - "&7• &fRule two"Adding New Commands
Section titled “Adding New Commands”Just add a new section under commands: and run /rexchat reload. The command is registered dynamically — no server restart needed.
Disabling
Section titled “Disabling”Set enabled: false on any command to unregister it.