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

readMatchPlayers

readMatchPlayers(world, match, readMatchPlayersOptions?): PlayerEntity[]

The players who hold match’s slots, in slot order: those connected and those whose connection dropped and the room still holds, so a game’s own event reaches them with { to: readMatchPlayers(world, match) }. With team, that side’s alone. A slot kept by account has no player: readMatchSlots lists it.

Parameter Type
world World
match MatchEntity
readMatchPlayersOptions ReadMatchPlayersOptions

PlayerEntity[]