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

TextChatReceiveRule

TextChatReceiveRule = (world, sender, recipient) => boolean

Decides whether recipient receives a chat line from sender. Each is an entity: a player’s player entity, or the entity an NPC message comes from. The room calls it on the world as the last step left it, read-only, once for each other player; it writes nothing, not even to an entity.

Parameter Type
world World
sender Entity
recipient Entity

boolean