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

SaveHandle

A save of a plugin, as plugin.saves.<name> reaches it: what another save’s requires names, and what an error names a save by. It names a plugin and a save, never an object: the world reads the save the plugin listed under that name declares.

Type Parameter Default type
Scope extends SaveScopeName SaveScopeName
Property Modifier Type Description
[saveHandleBrand] readonly true -
key readonly string Its key in a record: kits.inventory.bag.
perWorld readonly boolean Whether it is kept in the player’s record in each world unless the game says otherwise; false for a save of the world’s scope.
plugin readonly string The plugin’s name.
requires readonly readonly string[] The keys of the saves it requires.
save readonly string The save’s name in the plugin’s saves.
scopes readonly readonly Scope[] The scopes a game may keep it in, the first its own.