block_commands
Prevents the player from using specific commands while the holder is active.
Categories: chat, player
Required arguments
| Key(s) | Description | Type |
|---|
commands | The list of command names to block (without the leading slash). | STRING_LIST |
Optional arguments
| Key(s) | Description | Type | Default |
|---|
messages | Messages to send to the player when a blocked command is attempted. | STRING_LIST | |
Example
effects:
- id: block_commands
args:
commands: <value>
messages:
- "&cYou can't use that command right now!"
- "&7Complete your quest first." # ← Optional
Behaviour
| Setting | Value |
|---|
| Run order | NORMAL |
| Supports delay | true |
| Reloads on plugin reload | true |