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.
Joining a queue
Section titled “Joining a queue”| 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.
Queueing as a party
Section titled “Queueing as a party”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
Section titled “Unranked”Unranked queues pair players in the order they joined. Elo, ping and address are not checked.
Ranked
Section titled “Ranked”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:
- Their Elo is close enough. Each player has an allowed Elo gap that starts at
queue.elo-range-start(75) and grows byqueue.elo-range-per-second(10) every second they wait, up toqueue.elo-range-max(400). The gap between the two must fit inside both players’ ranges. - Their ping is close enough, if
queue.max-ping-differenceis above 0. It is 0 (off) by default. - They don’t connect from the same address, while
queue.block-same-addressistrue(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)resultis 1 for a win and 0 for a loss.expectedis the usual Elo chance of winning:1 / (1 + 10^((opponent − own) / 400)). In a 2v2, both sides use their team’s average Elo.Kisranked.placement-k-factor(64) for a player’s firstranked.placement-matches(5) ranked games in that kit, andranked.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.
Same opponent limit
Section titled “Same opponent limit”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
Section titled “Divisions”Divisions are named Elo bands, set in config.yml under ranked.divisions:
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-elotheir Elo in that kit reaches. nameis the display name in MiniMessage. It shows in/statsand in the promotion message.- When a ranked match takes a player into a higher division, they see
You reached <division>!and the division’scommandsrun 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.
Seasons
Section titled “Seasons”A season reset pulls everyone’s Elo back toward the starting value and clears streaks. Wins, losses, kills, deaths and best streaks are kept.
- Run
/pd season resetto see what it will do with your settings. - Run
/pd season reset confirmto do it.
For every player and every kit, the new Elo is:
start-elo + (old Elo − start-elo) × season-keepWith 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.
Developer hook
Section titled “Developer hook”Other plugins can stop a player from joining a queue with the QueueJoinEvent. See Placeholders and API.
