Data Model

1min read
Sheet 40 of 53 · Server Admin

What gets saved for an island, and how it moves between storage and memory. The saved record (IslandData) and the live object you get at runtime (SkyIsland) are two separate things.

Persisted island shape

IslandData is the on-disk record, stored as JSON. It carries a schemaVersion; fields added later read as empty on an island saved before them, and a blob written by a newer version than the running plugin is refused rather than half-read.

Stored areaExamples
Identityunique id, owner id, name, description, mode, map, grid index, created and last-active time
Locationcenter, home, warps, home server
Progresslevel, worth, bank balance, loan debt, upgrades, missions, milestones
Membershipmembers, banned players, coop players, permission overrides
Contentlocked state, flags, cosmetics, guestbook, links, public warps, warp categories, icons and visits
Mode stateOneBlock count, unlocked ChunkBlock chunks, skill points, skill levels, prestige

Repository lifecycle

StageWhat happens
EnableThe repository loads every saved island into a write-through cache. A record that cannot be read is logged and skipped.
ReadLookups hit memory, not storage, for steady-state performance.
SaveThe current island snapshot is encoded and persisted asynchronously. On a proxy network only the island's home server writes it.
DeleteThe island is removed from both cache and storage, and a save still in flight cannot bring it back.

The repository also stores pending cross-server arrivals for proxy sharding.

Startup lifecycle

StageWhat happens
Plugin enableConfigs load, storage starts, services wire up, then commands and hooks register.
World bootstrapSaved per-island worlds are loaded and claimed for their hosting pool.
ShutdownPending island saves are flushed, then the live caches are cleared.

Loading the index

Enter openUp Down moveEsc close