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

readLeaderboardPeriod

readLeaderboardPeriod(world, handle): LeaderboardPeriodSpan | null

The period of handle’s board that holds the room’s tick, so a sign counts down to its end or a race checks a window is open before it starts; null between two windows, and where no room keeps scores.

Parameter Type
world World
handle LeaderboardHandle

LeaderboardPeriodSpan | null