Ranked and ELO
How ELO changes after a ranked match, placement games, per-kit overrides and the overall rating.
A ranked queue changes the ELO of the players after each match. ELO is kept per kit. The overall rating is derived from the kits a player has played.
Make a kit ranked
Set ranked: true in the kit file and reload. The queue menu then has ranked entries for the kit. See Creating kits and arenas.
Where the ELO rules are
The ELO rules are in ranks/_default.yml. A file ranks/<kit>.yml overrides any key for one kit. Older servers had an elo section in matchmaking.yml. It is moved into ranks/_default.yml on update.
elo:
default: 1000
k-factor: 32
min: 100
placement:
games: 0
k-factor: 0
bonus:
streak:
enabled: true
source: kit
after: 3
per-level: 2
max: 10
first-win-of-day: 0| Key | Default | Meaning |
|---|---|---|
elo.default | 1000 | The ELO of a player who never played the kit |
elo.k-factor | 32 | How large a change can be, 1 to 200 |
elo.min | 100 | A loser never drops below this |
elo.placement.games | 0 | Ranked games in the kit that use the placement K-factor. 0 is off |
elo.placement.k-factor | 0 | The K-factor during placement, 0 to 200. 0 keeps the normal one |
elo.bonus.* | Extra ELO for winning. See Ranks and bonuses |
Reload with /md reload.
How a change is calculated
MineDuels uses the standard ELO formula. The expected score of a player rated R against an opponent rated O is:
expected = 1 / (1 + 10 ^ ((O - R) / 400))The winner gains round(k * (1 - expected)) points, at least 1. The loser loses the same number, but never goes below elo.min.
Examples with k-factor: 32:
| Winner | Loser | Winner gains | Loser loses |
|---|---|---|---|
| 1000 | 1000 | 16 | 16 |
| 1000 | 1200 | 24 | 24 |
| 1200 | 1000 | 8 | 8 |
| 1500 | 1000 | 2 | 2 |
| 120 | 100 | 15 | 0 (the loser is already at min 100) |
A win against a stronger player is worth more than a win against a weaker one.
Team matches
In a ranked 2v2 the average ELO of each team is compared. The change between the two averages is added to every winner and taken from every loser. A loser never drops below elo.min.
What counts
- Only ranked wins and losses change ELO and are counted as ranked games.
- Unranked games are kept apart (
unrankedWins,unrankedLosses) and never change ELO. - A match records stats only when it ends by score, by forfeit or by quit with a winner. A draw, an aborted start and a server shutdown change nothing. See Events.
Placement games
A new player with the default 1000 ELO needs time to find their level. Placement uses a larger K-factor for their first games in a kit:
elo:
placement:
games: 10
k-factor: 64For a player's first 10 ranked games in the kit a change uses 64 instead of 32. Later games use the normal value. placement-games (a different setting at the top of ranks/_default.yml) is about showing the rank. See Ranks and bonuses.
Overall rating
The overall ELO is the average of a player's ELO over the kits where they have at least one ranked game, rounded. It is used by the overall leaderboard and the overall rank.
| Kit | Ranked games | ELO |
|---|---|---|
| nodebuff | 40 | 1300 |
| sumo | 5 | 1100 |
| boxing | 0 | 1000 (not counted) |
The overall ELO is (1300 + 1100) / 2 = 1200.
The overall leaderboard lists players with at least leaderboard.overall-min-games ranked games in total (10 by default, in matchmaking.yml).
Different rules for one kit
Create ranks/nodebuff.yml and set only what differs:
elo:
k-factor: 24
placement:
games: 5
k-factor: 48Everything else comes from ranks/_default.yml. A tiers section in the kit file replaces the default tiers for that kit.
Pairing in the queue
ELO also decides who is matched: the ranked queue widens its search range over time. Those settings are under queue.ranked in matchmaking.yml:
queue:
ranked:
initial-range: 50
range-step: 25
step-seconds: 5
max-range: 400A player starts looking for opponents within 50 ELO. Every 5 seconds the range grows by 25, up to 400.
See the numbers
- In game:
/statsand the leaderboard menus. - Over HTTP:
GET /players/<name>/statsandGET /leaderboards/<kit>in the web API. - From a plugin:
MineDuelsApi.elo(...),stats(...)andtop(...)in the Developer API, and the ELO change of a match inMatchEndEvent.eloChanges().
Related: Ranks and bonuses, Stats and leaderboards, Matchmaking.