# Command hooks

You can execute commands whenever a staff member exits or enters a mode

```yaml
modes:
    default:
        enable-commands: []
        disable-commands: []
```

Commands listed here should be in the [Staff ++ command format](https://wiki.staffplusplus.org/general-information/other/configuring-commands)

### Placeholders:

| placeholder | description                                            |
| ----------- | ------------------------------------------------------ |
| %staff%     | The name of the staff member entering/exiting the mode |

### Executors:

| executor value | description                                |
| -------------- | ------------------------------------------ |
| staff          | The staff member entering/exiting the mode |

### Targets:

| target value | description                                |
| ------------ | ------------------------------------------ |
| staff        | The staff member entering/exiting the mode |

### Filters

Currently no filters are available except the [permission filter](https://wiki.staffplusplus.org/general-information/other/configuring-commands#permission-filter)

### Example:

```yaml
 modes:
    default:
        enable-commands: []
        disable-commands:
          - command: "tell %staff% Taking a break uh?"
            target: "staff"
            target-run-strategy: ONLINE
```
