run_player_command
Runs one or more commands as the player when triggered.
Categories: chat
Required arguments
| Key(s) | Description | Type |
|---|
commands \| command | The command or list of commands to run as the player. Use %player% and %victim% as placeholders. | STRING_LIST |
Optional arguments
| Key(s) | Description | Type | Default |
|---|
as_op | Whether to temporarily grant the player operator permissions while running the commands. | BOOLEAN | false |
Trigger parameters required
Example
effects:
- id: run_player_command
args:
commands:
- "me does a flip!"
- "kill %victim%"
as_op: true # ← Optional
Behaviour
| Setting | Value |
|---|
| Run order | NORMAL |
| Supports delay | true |
| Reloads on plugin reload | true |