# Chat

## config.yml

### Prefix

The prefix is exchanged with `%prefix%` (placeholder) in the message files. If you execute the command and enter the placeholder at the beginning of the message, it will be replaced with the prefix. This can be changed in `config.yml`.

```yaml
prefix: "&7[&fChat&7]&r"
```

### Permission

To be able to execute the command for the chat module, you need the permission that is entered in `config.yml`.

{% hint style="warning" %}
Die Permission ist eine BungeeCord Permission
{% endhint %}

```yaml
permission: "bungeesystem.switch.chat"
```

### ingameChatName

Here you can define the chat name for the ingame chat, in other words the normal Minecraft chat. If you select this chat, you will only read the messages from the local server.

```yaml
# you can read every chat message on every server except for the ingame-chat. This chat is only readable on the server where the player is
ingameChatName: "ingame"
```

### chats

These are the chats you can choose between.

```yaml
chats:
  - "bedwars"
  - "skywars"
  - "gungame"
  - "mlgrush"
```

### Aliases

You can also define so-called aliases that you can enter instead of /chat. To do this, simply add further points under the item `aliases`.

```yaml
aliases: []
```

### Default configuration

```yaml
chat:
  prefix: "&7[&fChat&7]&r"
  switchPermission: "bungeesystem.switch.chat"
  # you can read every chat message on every server except for the ingame-chat. This chat is only readable on the server where the player is
  ingameChatName: "ingame"
  chats:
    - "bedwars"
    - "skywars"
    - "gungame"
    - "mlgrush"
  aliases: []
```

## Command

### Syntax

```
/chat <chat name>
```
