Lifecycle
Fileleaderboards.ymlCommand/zadmin reloadWhat the plugin does when the server starts, when it stops, and when players come and go. Useful when something looks wrong after a restart.
Startup
| Step | What happens |
|---|---|
| Configs | All ten config files load, and the updater adds any new keys. |
| Arenas | Every file in arenas/ is loaded. |
| Stats | The SQLite or MySQL connection opens. If it fails, stats are switched off and the rest carries on. |
| Services | Gameplay, UI and creator services start. The action bar timer begins. |
| Listeners and commands | /zombies and /zadmin are registered. |
| PlaceholderAPI | The expansion registers if PlaceholderAPI is installed. |
| Lobby NPC | Spawns when lobby-npc.enabled is true. |
| Leaderboard holograms | Loaded from leaderboards.yml and drawn. |
| Timers | Profile saving every auto-save-interval seconds and leaderboard refresh every leaderboards.refresh-seconds. |
If any step before this throws, the plugin logs the error and disables itself.
Shutdown
| Step | What happens |
|---|---|
| Creator Mode | Everyone in Creator Mode is taken out and gets their inventory back. |
| Leaderboard holograms | Removed. They come back on the next start. |
| Stats | Every changed profile is saved, waiting for the writes to finish, then the connection closes. |
| Bosses | Boss bars and ability timers are cleared. |
| Arenas | Running matches are ended and players restored. |
| Corpses, holograms, highlights | Removed from the world. |
| Arena files | Every arena is saved. |
Players joining and leaving the server
| Event | What happens |
|---|---|
| Join | The player's stats profile loads in the background. |
| Quit | Creator Mode ends, wand selections and previews clear, the player leaves their arena (restoring their inventory) and their profile is saved if it changed. |
A player who disconnects mid-match counts as leaving: their stats for that game are recorded and their inventory is restored before they go.
Reload
Command/zadmin reload/zadmin reload reloads the config files and redraws the leaderboard holograms. Arenas, the
database and running matches are left as they are. See Configuration for what needs a
restart.