> For the complete documentation index, see [llms.txt](https://tcb.tect.host/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tcb.tect.host/pro/actions.md).

# Actions

Configuration file: actions.yml

## Example

```yaml
commands:
  "pl":
    actions:
      - "[MESSAGE] &7"
      - "[MESSAGE] &#FF0000&l            ! ERROR !"
      - "[MESSAGE] &#FF0000🚫 &#FF0000This Command Is Restricted! &#FF0000🚫"
      - "[MESSAGE] &7"
      - "[CANCEL_EVENT]"
```

## Tags

### \[MESSAGE]

Sends a message to the player (supports PlaceholderAPI placeholders, '&' colors and HEX colors with format \&#rrggbb)

Example:

```yaml
commands:
  "test":
    actions:
      - "[MESSAGE] &aThis is a test message."
      - "[MESSAGE] &#c03afeT&#9e28f5h&#7d15edi&#5b03e4s &ais a test message."
      - "[MESSAGE] &e%player_name%&a, this is a test message."
```

### \[TITLE]

Sends a title to the player (supports PlaceholderAPI placeholders, '&' colors and HEX colors with format \&#rrggbb)

Example:

```yaml
commands:
  "test":
    actions:
      - "[TITLE] &aThis is a test title;&cAnd this a test subtitle"
```

### \[CANCEL\_EVENT]

Cancels the command execution (recommended if you want to block it)

Example:

```yaml
commands:
  "test":
    actions:
      - "[CANCEL_EVENT]"
```
