Skip to content

PandaDuels

Queues and ranked

How unranked and ranked queues match players, how Elo works, and how to run divisions and seasons.

Every enabled kit has an unranked queue. Kits you mark as ranked also have a ranked queue. Matching runs once a second.

Command What it does
/queue Opens the unranked queue menu.
/queue ranked Opens the ranked queue menu (ranked kits only).
/queue unranked Opens the unranked queue menu.
/queue <kit> Joins the kit’s unranked queue.
/queue <kit> ranked Joins the kit’s ranked queue.
/queue leave or /leave Leaves the queue.

/q is short for /queue. Players can also queue from lobby items and queue signs.

The queue menu shows how many players are queued and playing for each kit, and in the ranked menu, the player’s Elo in that kit. While waiting, the action bar shows the time spent waiting and, in ranked, the current Elo range.

Players can’t queue while they are in a match, spectating, editing a kit or in a running tournament.

The leader of a party of exactly two players can queue the whole party. They are matched against another party of two, in unranked or ranked. Other party sizes can’t queue; use party matches instead.

Unranked queues pair players in the order they joined. Elo, ping and address are not checked.

A kit needs ranked turned on first: /pd kit ranked <kit> on.

Two players (or parties of two) in a ranked queue are matched when all of these are true:

  1. Their Elo is close enough. Each player has an allowed Elo gap that starts at queue.elo-range-start (75) and grows by queue.elo-range-per-second (10) every second they wait, up to queue.elo-range-max (400). The gap between the two must fit inside both players’ ranges.
  2. Their ping is close enough, if queue.max-ping-difference is above 0. It is 0 (off) by default.
  3. They don’t connect from the same address, while queue.block-same-address is true (the default).

When several players fit, the one with the closest Elo is picked. The player who has waited longest is matched first.

For a party of two, the party’s Elo is the average of both members’ Elo in that kit.

Every player starts every kit at ranked.start-elo (1000). After a ranked match with a winner, each player’s Elo changes by:

change = K × (result − expected)
  • result is 1 for a win and 0 for a loss.
  • expected is the usual Elo chance of winning: 1 / (1 + 10^((opponent − own) / 400)). In a 2v2, both sides use their team’s average Elo.
  • K is ranked.placement-k-factor (64) for a player’s first ranked.placement-matches (5) ranked games in that kit, and ranked.k-factor (32) after that.

The result is rounded to a whole number. Elo never drops below ranked.floor (0).

Draws and cancelled matches don’t change Elo. Each player’s Elo is kept per kit. Their overall Elo (%pandaduels_elo%) is the average of their Elo in every kit they have played ranked.

After the match, each player sees Elo 1000 → 1016 +16.

Two players who keep playing each other could trade Elo between them. After ranked.max-same-opponent-per-day (5) ranked 1v1 matches between the same two players in one day, their later matches that day still count for wins and losses, but Elo stops moving. Both players see Elo didn't change: you've played <name> too often today.

The day follows the server’s clock. The count is kept in memory, so it also starts again after a restart. Set the limit to 0 to turn it off.

Divisions are named Elo bands, set in config.yml under ranked.divisions:

config.yml
ranked:
divisions:
bronze: { name: "<#cd7f32>Bronze", min-elo: 0, commands: [] }
silver: { name: "<gray>Silver", min-elo: 1100, commands: [] }
gold: { name: "<gold>Gold", min-elo: 1250, commands: [] }
diamond: { name: "<aqua>Diamond", min-elo: 1450, commands: [] }
master: { name: "<light_purple>Master", min-elo: 1700, commands: [] }
  • A player’s division in a kit is the highest one whose min-elo their Elo in that kit reaches.
  • name is the display name in MiniMessage. It shows in /stats and in the promotion message.
  • When a ranked match takes a player into a higher division, they see You reached <division>! and the division’s commands run from the console. {player} is replaced with the player’s name. For example: commands: ["give {player} diamond 1"].
  • The key (bronze, silver, …) is what the %pandaduels_division% placeholders return.

You can add, remove or rename divisions. Changes apply after /pd reload.

A season reset pulls everyone’s Elo back toward the starting value and clears streaks. Wins, losses, kills, deaths and best streaks are kept.

  1. Run /pd season reset to see what it will do with your settings.
  2. Run /pd season reset confirm to do it.

For every player and every kit, the new Elo is:

start-elo + (old Elo − start-elo) × season-keep

With the defaults (start-elo: 1000, season-keep: 0.5), a player at 1400 goes to 1200 and a player at 800 goes to 900. Set ranked.season-keep: 0 for a full reset to the starting Elo.

Other plugins can stop a player from joining a queue with the QueueJoinEvent. See Placeholders and API.