block_commands

Prevents the player from using specific commands while the holder is active.

Categories: chat, player

Required arguments

Key(s)DescriptionType
commandsThe list of command names to block (without the leading slash).STRING_LIST

Optional arguments

Key(s)DescriptionTypeDefault
messagesMessages 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

SettingValue
Run orderNORMAL
Supports delaytrue
Reloads on plugin reloadtrue