Match types
The eight ways a match starts, and what each one does for stats, ELO and the API.
Every match has a type. It is set when the match is created and never guessed from the number of players. The type shows in the API and the events.
| Type | Config and API name | How it starts |
|---|---|---|
| Duel | duel, DUEL | A /duel request between two players |
| Queue | queue, QUEUE | The unranked or ranked queue, 1v1 or teams |
| Party split | party-split, PARTY_SPLIT | /party split: the party in two teams |
| Party free for all | party-ffa, PARTY_FFA | /party ffa: everyone against everyone, also with two members |
| Party teams | party-teams, PARTY_TEAMS | /party teams: two or more teams (Team Battle) |
| Party duel | party-duel, PARTY_DUEL | A party against another party |
| Red Rover | red-rover, RED_ROVER | One bout of a Red Rover game |
| Tournament | tournament, TOURNAMENT | One match of a tournament bracket |
The lower case key is used in config files and network messages. The upper case name is used by the Java API and the web API.
Ranked or not
Only the queue can be ranked. Duels, party games, Red Rover and tournament matches are unranked: they never change ELO. A match records stats only when it ends by score, by forfeit or by quit with a winner. See Ranked and ELO.
Where each is configured
| Type | Read |
|---|---|
| Queue | Matchmaking, the queue menus and Queue signs |
| Duel | Duels |
| Party types and Red Rover | Party games and Parties |
| Tournament | Tournaments |
Using the type
In a plugin, MatchInfo.type() returns a MatchType:
@EventHandler
public void onStart(MatchStartEvent event) {
if (event.match().type() == MatchType.TOURNAMENT) {
getLogger().info("Tournament match " + event.match().id() + " started");
}
}In the web API, type is in every running match:
curl -s -H "Authorization: Bearer $MD_KEY" "$MD_URL/matches/running" | jq -r '.data[] | "\(.server) #\(.id) \(.type)"'game-1 #18 QUEUE
game-2 #4 PARTY_FFAIn messages.yml, the match found lines have one key per mode, and the placeholder <match_type> is available. See Messages.
Related: Match start, Spectating.