Data Model
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 area | Examples |
|---|---|
| Identity | unique id, owner id, name, description, mode, map, grid index, created and last-active time |
| Location | center, home, warps, home server |
| Progress | level, worth, bank balance, loan debt, upgrades, missions, milestones |
| Membership | members, banned players, coop players, permission overrides |
| Content | locked state, flags, cosmetics, guestbook, links, public warps, warp categories, icons and visits |
| Mode state | OneBlock count, unlocked ChunkBlock chunks, skill points, skill levels, prestige |
Repository lifecycle
| Stage | What happens |
|---|---|
| Enable | The repository loads every saved island into a write-through cache. A record that cannot be read is logged and skipped. |
| Read | Lookups hit memory, not storage, for steady-state performance. |
| Save | The current island snapshot is encoded and persisted asynchronously. On a proxy network only the island's home server writes it. |
| Delete | The 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
| Stage | What happens |
|---|---|
| Plugin enable | Configs load, storage starts, services wire up, then commands and hooks register. |
| World bootstrap | Saved per-island worlds are loaded and claimed for their hosting pool. |
| Shutdown | Pending island saves are flushed, then the live caches are cleared. |