Skip to content

API Class Match

github-actions[bot] edited this page Nov 24, 2026 · 1 revision

Class: Match

Defined in: src/engine/net/lobby/match.ts:146

Match Worlds (ADR 0068). Match.current is the current World's match, or null in a World a lobby didn't create for a match.

const match = Match.current;
for (const p of match?.players ?? []) if (p.bot) p.name = `Captain ${p.slot + 1}`;
match?.end({ winner: "Anne" });

Accessors

current

Get Signature

get static current(): MatchInfo | null;

Defined in: src/engine/net/lobby/match.ts:150

The current World's match, or null if it isn't a match World.

Returns

MatchInfo | null

Clone this wiki locally