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

isWorldSaveTrait

isWorldSaveTrait(world, trait): boolean

Whether one of the game’s worldSaves keeps each entity holding trait, as a save listed there with each: trait does: what a plugin whose entities must outlive a restart checks before it lets a player pay for one.

Parameter Type
world World
trait Trait

boolean