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

PartyRule

What a plugin declares to answer the party question, as parties() does; at most one listed plugin declares one. The members a rule answers are the ones in this room: a platform’s party may hold others.

Property Type Description
traits? readonly Trait[] The traits its answers read, which a view watches to read them again as they change.

findParty(world, player): PartyEntity | null

The party player is in, or null for none.

Parameter Type
world World
player PlayerEntity

PartyEntity | null


readPartyLeader(world, party): PlayerEntity | null

The member who speaks for the party, such as the one whose join queues it, or null where none is in this room.

Parameter Type
world World
party PartyEntity

PlayerEntity | null


readPartyMembers(world, party): readonly PlayerEntity[]

The party’s members in this room, in no order the core reads.

Parameter Type
world World
party PartyEntity

readonly PlayerEntity[]