Storage
How and where player progress is saved.
Player progress is stored in flat files, one per player, in plugins/zQuestRank/playerdata/<uuid>.yml. No database needed.
What is stored
- The player's current rank.
- Progress numbers for each quest of the current rank.
- Which of those quests are completed.
Progress always belongs to the current rank. When a player claims a rank (or an admin uses setrank), the quest progress resets and the next rank starts fresh. Finished ranks stay finished; the plugin only needs to remember where the player currently stands.
When it saves
- Data loads when a player joins and unloads when they leave.
- Every progress change saves in the background, so a crash loses next to nothing.
- Everything saves on server shutdown.
Progress survives relogs, restarts, and plugin updates.
Resetting a player
/rank admin resetquests <player>wipes the quest progress of their current rank./rank admin setrank <player> <number>moves them to any rank (also resets the quest progress, since it belongs to the new rank).- Deleting a player's file in
playerdata/while they are offline resets them completely to rank one.
See Commands for the admin command details.