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

# Configuration

## General

```yml
modules:
  # Allows you to configure prefixes, suffixes, formats, and other options by permission-based groups
  #
  # Group module loaded from modules/groups.yml
  group: true
```

* modules.group: Enable/disable the full module

***

## Module

Example group:

```yml
groups:
  example: #<-- Group name
    permission: tchat.group.example #<-- Example permission
    priority: 1 #<-- Group priority
    prefix: "" #<-- This group don't have a prefix
    suffix: "" #<-- This group don't have a suffix
    format: "%tchat_prefix% <gray> %tchat_nick% </gray> <yellow>></yellow> <white><message></white>" #<-- Example format
```

* groups.example: The group name (id).
* groups.example.permission: The group permission (you can use any other permission, you don't need to use tchat.group.X).
* groups.example.priority: The priority (1 > 2), If a user has permission for the owner group and also has permission for the admin group, but owner has priority 1 and admin has priority 2, the user will have the owner group.
* groups.example.prefix: The group prefix (%tchat\_prefix%), to disable it, leave the section empty.
* groups.example.suffix: The group suffix (%tchat\_suffix%), to disable it, leave the section empty.
* groups.example.format: The group format, to disable it, leave the section empty (So that group will use the global format from config.yml).\
  \- Use `<message>` to replace it with the player's message.\
  \- You can use MiniMessage to add Tooltip and hover actions.
