Skip to Content
MineDuels

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.

TypeConfig and API nameHow it starts
Duelduel, DUELA /duel request between two players
Queuequeue, QUEUEThe unranked or ranked queue, 1v1 or teams
Party splitparty-split, PARTY_SPLIT/party split: the party in two teams
Party free for allparty-ffa, PARTY_FFA/party ffa: everyone against everyone, also with two members
Party teamsparty-teams, PARTY_TEAMS/party teams: two or more teams (Team Battle)
Party duelparty-duel, PARTY_DUELA party against another party
Red Roverred-rover, RED_ROVEROne bout of a Red Rover game
Tournamenttournament, TOURNAMENTOne 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

TypeRead
QueueMatchmaking, the queue menus and Queue signs
DuelDuels
Party types and Red RoverParty games and Parties
TournamentTournaments

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_FFA

In messages.yml, the match found lines have one key per mode, and the placeholder <match_type> is available. See Messages.

Related: Match start, Spectating.

On this page