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

# Рейтинг

Рейтинг работает только для китов режима `rating` и команд `/ratingqueue` или `/premiumqueue rating`.

### Команды

```
/ratingqueue
/ratingqueue <kit>
/ratingqueue leave
/premiumqueue rating <kit>
/fight rank <ник> <порог>
```

### Где хранятся данные

```
plugins/KastFight/players/<uuid>.yml
```

Пример:

```yaml
rating:
  elo:
    boxing: 120
  total-elo: 500
stats:
  duels:
    matches: 20
    wins: 10
```

Если `total-elo` не задан, общий Elo считается как сумма Elo по китам.

### Настройки Elo

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

Изменение Elo берётся случайно в пределах `clamp.win` и `clamp.loss`.

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

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

Если `require_wins: false`, победы не требуются.

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

```
%kastfight_rating_unlock_matches_left%
%kastfight_rating_unlock_wins_left%
%kastfight_rating_unlock_matches_played%
%kastfight_rating_unlock_wins_done%
%kastfight_rating_unlocked%
```

### Ранги

```yaml
rating:
  total-ranks:
    default:
      0: "&7Новичок"
      100: "&aОхотник"
      200: "&bСледопыт"
```

Плагин берёт самый высокий порог, который не больше общего Elo игрока.

Выдать игроку общий порог:

```
/fight rank Steve 500
```

Порог должен существовать в `rating.total-ranks.default`.

### Плейсхолдеры

```
%kastfight_elo_<kit>%
%kastfight_elo_total%
%kastfight_rank_total%
%kastfight_rank_title_total%
%kastfight_elo_or_rank_total%
%kastfight_rank_<kit>%
%kastfight_top_total_<place>_name%
%kastfight_top_total_<place>_elo%
%kastfight_top_<kit>_<place>_name%
%kastfight_top_<kit>_<place>_elo%
```

### Если рейтинг не работает

Проверьте:

1. Есть кит режима `rating`.
2. Игрок использует `/ratingqueue <kit>`.
3. `rating.enabled: true`.
4. Если включена разблокировка, игрок выполнил условия.
5. У игрока есть `kastfight.queue`.


---

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