# 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>
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki-en.herrtechniker.eu/bungeesystem/module/chat.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
