Lifecycle
What happens, in order, when the plugin starts and stops. Useful when you're reading a startup log or chasing a shutdown that lost data.
Enable order
| Step | What happens |
|---|---|
| Configs | Configs and language files load first. |
| Storage | The storage backend opens. |
| Worlds | The island worlds for each enabled mode are loaded or created (on Folia, adopted from the server's own worlds). |
| Islands | The island repository warms its cache from storage, and saved per-island worlds are loaded and claimed from their hosting pool. |
| Services | Economy, rewards, auto-save, bank interest, seasons, menus, chunk borders and the rest wire up. |
| Commands | Player and admin command trees register, then protection and flag listeners. |
| Hooks | PlaceholderAPI and other optional hooks register if present. |
| Features | Feature modules start, then addons load. |
Disable order
Shutdown runs in reverse. Each step is isolated, so one failing service cannot stop the rest.
| Step | What happens |
|---|---|
| Features | Addons, features, holograms, listeners and commands shut down. |
| Save | Auto-save flushes every island it may write back to storage. |
| Cleanup | Scheduled tasks are cancelled and live island caches clear. |
| Storage | The backend drains its write queue and closes. |
Repository behavior
IslandRepository is a write-through cache. Reads hit memory, saves encode a snapshot and persist
asynchronously, and deletes remove the island from both cache and storage. It also stores pending
cross-server arrivals for proxy sharding.