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

SaveDeclaration

SaveDeclaration<Schema, Scopes, Requires> = Omit<SaveConfig<Schema, Scopes, Requires>, "scopes" | "perWorld"> & object

A save as defineSave checked it: what a plugin’s saves holds by name, and what defineGame’s playerState, playerWorldState and worldState are. Its scopes are always there, the first its own.

Name Type Description
[saveBrand] true -
perWorld boolean Whether it is kept per world unless the game says otherwise.
scopes Scopes -
Type Parameter Default type
Schema extends SaveSchema SaveSchema
Scopes extends SaveScopes SaveScopes
Requires extends SaveRequires SaveRequires