Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

endMatch

endMatch(authority, match, options): boolean

Ends a match, as a finish line, a crash or a forfeit does: a co-op match by its outcome, a victory or a draw ending one in play and a defeat one that has not ended; a match of teams or a free-for-all by its winner, null for a draw, while it plays. A queue-less match’s victory finishes the level being played. It scores first, so a coin a game’s system credited earlier in the step counts. Returns whether it ended the match; the wrong options for the match throw in development and return false in a deployed world.

Parameter Type
authority Authority
match MatchEntity
options EndMatchOptions

boolean