# Chat module

### Introduction

The chat module allows you to manage certain chat functionalities. Most of these are still the old Staff+ ones.&#x20;

### Configuration

```yaml
############################################################
# +------------------------------------------------------+ #
# |                    Staff Chat                        | #
# +------------------------------------------------------+ #
############################################################

# Requires "permissions.staff-chat" permission.
staff-chat-module:
    # Whether or not the plugin will use "/sc" features.
    enabled: true
    # Whether or not the plugin synchronises staff chat across the bungee network
    bungee: true

    # The string that can be used at the beginning of a message to make it appear in staff chat.
    # If you have "@" as your string, typing "@hey guys" would send "hey guys" to staff chat.
    # Leave blank to disable.

    channels:
        -   command: sc
            handle: "@"
            name: staffchat
            prefix: '&dStaffChat &8»'
            message-format: '&b%player% &8» &7%message%'
            permission: staff.staffchat
            sound: "NONE"
```

### Phrase detection actions

You can execute actions whenever certain phrases are detected

```yaml
  detection:
    phrase-groups:
      - phrases:
            - admin
            - mod
        actions: []
```

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

#### Placeholders

<table><thead><tr><th width="265.0007983677815">placeholder</th><th>description</th></tr></thead><tbody><tr><td>%player%</td><td>The name of the player that triggered the phrase detection</td></tr><tr><td>%phrases%</td><td>The configured phrases that were detected</td></tr></tbody></table>

#### Targets

<table><thead><tr><th width="353">target value</th><th>description</th></tr></thead><tbody><tr><td>player</td><td>The player that triggered the phrase detection</td></tr></tbody></table>

#### Executors <a href="#undefined" id="undefined"></a>

<table><thead><tr><th width="351.47558770343585">executor value</th><th>description</th></tr></thead><tbody><tr><td>player</td><td>The player that triggered the phrase detection</td></tr></tbody></table>
