Lifecycle

1min read
Sheet 39 of 53 · Server Admin

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

StepWhat happens
ConfigsConfigs and language files load first.
StorageThe storage backend opens.
WorldsThe island worlds for each enabled mode are loaded or created (on Folia, adopted from the server's own worlds).
IslandsThe island repository warms its cache from storage, and saved per-island worlds are loaded and claimed from their hosting pool.
ServicesEconomy, rewards, auto-save, bank interest, seasons, menus, chunk borders and the rest wire up.
CommandsPlayer and admin command trees register, then protection and flag listeners.
HooksPlaceholderAPI and other optional hooks register if present.
FeaturesFeature modules start, then addons load.

Disable order

Shutdown runs in reverse. Each step is isolated, so one failing service cannot stop the rest.

StepWhat happens
FeaturesAddons, features, holograms, listeners and commands shut down.
SaveAuto-save flushes every island it may write back to storage.
CleanupScheduled tasks are cancelled and live island caches clear.
StorageThe 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.

Loading the index

Enter openUp Down moveEsc close