> 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/rezhimy.md).

# Режимы

### Обычные дуэли

* Кит: `default`.
* Команда: `/queue <kit>`.
* Меню: `/queue`.
* Арена: `duel`.
* Elo не меняется.

Когда два игрока ждут один и тот же default-кит, плагин запускает матч на свободной дуэльной арене.

### Рейтинговые дуэли

* Кит: `rating`.
* Команда: `/ratingqueue <kit>`.
* Меню: `/ratingqueue`.
* Арена: `duel`.
* После боя меняется Elo.

Настройки:

```yaml
rating:
  enabled: true
  start_elo: 0
  floor_elo: 0
  clamp:
    win:
      min: 5
      max: 15
    loss:
      min: 3
      max: 7
```

Разблокировка рейтинга:

```yaml
rating:
  unlock:
    enabled: true
    required_matches: 20
    require_wins: false
    required_wins: 10
```

Если `require_wins: false`, победы не обязательны.

### Персональные дуэли

* Кит: `default`.
* Команда: `/duel <ник> <kit>`.
* Если kit не указан, открывается меню выбора.

Принять:

```
/duel accept [ник]
/duelaccept <ник>
```

Отклонить:

```
/duel decline [ник]
/dueldecline <ник>
/dueldeny <ник>
```

Настройки приглашений:

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

### Premium-очереди

* Право: `kastfight.premium`.
* Команда: `/premiumqueue`.

```
/premiumqueue join <kit>
/premiumqueue unranked <kit>
/premiumqueue rating <kit>
/premiumqueue leave
```

Premium-очередь отделена от обычной очереди.

### FFA

* Кит: `ffa`.
* Арена: `ffa`.
* Команда: `/ffa <kit>`.
* Меню: `/ffa`.

```
/ffa <kit>
/ffa leave
```

Настройки:

```yaml
ffa:
  combat:
    duration-seconds: 30
    bossbar:
      enabled: true
      color: RED
      style: SOLID
  spawn-protection:
    seconds: 6
  drops:
    on-death: true
    on-logout-in-combat: true
```

Админ может привязать FFA-кит к арене:

```
/ffa setkit ffa1 boxing
/ffa clearkit ffa1
```

### Спектатор

```
/spec <ник>
/spec leave
```

Спектатор работает для активной дуэли или FFA-состояния игрока.

### Редактор китов

```
/kiteditor <kit>
/kiteditor <mode> <kit>
/kiteditor save
/kiteditor reset
/kiteditor leave
```

Пока игрок в редакторе, он не должен входить в очередь или FFA.

### Полезные состояния

Плейсхолдер:

```
%kastfight_player_state%
```

Может вернуть `NONE`, `QUEUE` или состояние матча вроде `COUNTDOWN`, `FIGHTING`, `ENDED`.


---

# 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/rezhimy.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.
