run_player_command

Runs one or more commands as the player when triggered.

Categories: chat

Required arguments

Key(s)DescriptionType
commands \| commandThe command or list of commands to run as the player. Use %player% and %victim% as placeholders.STRING_LIST

Optional arguments

Key(s)DescriptionTypeDefault
as_opWhether to temporarily grant the player operator permissions while running the commands.BOOLEANfalse

Trigger parameters required

  • PLAYER

Example

effects:
  - id: run_player_command
    args:
      commands: 
        - "me does a flip!"
        - "kill %victim%"
      as_op: true # ← Optional

Behaviour

SettingValue
Run orderNORMAL
Supports delaytrue
Reloads on plugin reloadtrue