> For the complete documentation index, see [llms.txt](https://kast1ent.gitbook.io/kast1ent-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kast1ent.gitbook.io/kast1ent-docs/kastfight/konfigi.md).

# Конфиги

## Конфиги

Основные файлы находятся в `plugins/KastFight`.

### Файлы

```
config.yml              - основные настройки
messages.yml            - сообщения, title, actionbar
aliases.yml             - публичные алиасы
Hub_Items.yml           - предметы хотбара хаба
cooldowns.yml           - правила кулдаунов
cooldowns/settings.yml  - настройки кулдаунов
Menus/*.yml             - игровые меню
scoreboard/*.yml        - скорборды
gui_admin.yml           - админское меню
```

### config.yml: базовое

```yaml
settings:
  debug: false
teleport:
  spawn: ""
editor:
  lobby: ""
match:
  countdown-seconds: 5
  post-win-stay-seconds: 5
  draw-minutes: 12
```

`spawn` задаётся через `/setspawn`, `editor.lobby` через `/kiteditor setlobby`.

### Приглашения

```yaml
duel-invite:
  expire-seconds: 60
  cooldowns:
    send-seconds: 30
    decline-seconds: 120
  permissions:
    accept-enabled: true
    decline-enabled: true
```

### Блокировка команд в дуэли

```yaml
duel:
  command-block:
    enabled: true
    allowed:
      - "tell"
      - "report"
```

### FFA

```yaml
ffa:
  combat:
    duration-seconds: 30
    bossbar:
      enabled: true
      color: RED
      style: SOLID
  spawn-protection:
    seconds: 6
  arena-restore:
    interval-seconds: 600
    countdown-seconds: 5
    blocks-per-tick: 1500
  on-plugin-reload:
    kick-to-spawn: true
    remove-kit: true
  drops:
    on-death: true
    on-logout-in-combat: true
```

### Награды командами

Команды выполняются от консоли.

```yaml
commands:
  duel:
    default:
      winner:
        - "eco give %player% 100-200 -s"
      loser:
        - "eco take %player% 50-100 -s"
    rating:
      winner:
        - "eco give %player% 100-200 -s"
      loser:
        - "eco take %player% 50-100 -s"
  ffa:
    death:
      - "eco take %player% 10-30 -s"
    kill:
      - "eco give %player% 10-30 -s"
```

Поддерживаются `%player%`, `%winner%`, `%loser%`, `%killer%`, `%victim%` и диапазоны вроде `100-200`.

### Рейтинг

```yaml
rating:
  enabled: true
  start_elo: 0
  floor_elo: 0
  unlock:
    enabled: true
    required_matches: 20
    require_wins: false
    required_wins: 10
  total-ranks:
    default:
      0: "&7Новичок"
      100: "&aОхотник"
```

### Алиасы

```yaml
ktqueue:
 - queue
ktduel:
 - duel
ktkit:
 - kit
ktarena:
 - arena
ktffa:
 - ffa
ktfight:
 - fight
```

Если короткая команда конфликтует с другим плагином, поменяйте алиас.

### Hub\_Items.yml

```yaml
hub-items:
  enabled: true
  give-on-join: true
  slot-index-base: 1
  protection:
    prevent-move: true
    prevent-drop: true
    prevent-offhand: true
```

У предмета есть `command`, который выполняется игроком при правом клике.

### cooldowns.yml

Правила можно писать руками или создавать через `/cooldown add ...`.

```yaml
rules:
  example:
    enabled: true
    seconds: 16
    trigger: RIGHT_CLICK
    target: "ffa:archer"
    item:
      material: ENDER_PEARL
      display_name: ""
      ignore_display_colors: true
    display_name: "&bEnder Pearl"
```

### После изменения YAML

```
/fight reload
```

Если меняли `plugin.yml`, зависимости или jar, нужен restart сервера.


---

# 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, and the optional `goal` query parameter:

```
GET https://kast1ent.gitbook.io/kast1ent-docs/kastfight/konfigi.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
