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

checkEntityAuthority

checkEntityAuthority(authority, entity, outcome): World

Checks authority for an outcome on entity and returns its world, read-only. Throws where the authority is over another world, or over another entity, since no type can tie an authority to an entity, and where the entity is on a page in a room and the authority is no page’s own. A join hook’s step passes for the joining player and what the join spawned. What a game’s or a kit’s own verb on one entity, such as setTeam, checks first, as the engine’s verbs do; it then writes through the authority, as readAuthorityWorld reads the world for an outcome over the whole world. The check itself writes nothing, so a saved entity’s restore that calls it and then writes nothing beyond its entity has written nothing beyond it.

Parameter Type
authority EntityAuthority
entity Entity
outcome string

World