> 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.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://tchat.tect.host/groups/configuration.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.
