Every section in this file is dedicated to a "registered player".
The key is the player's Unique User ID (UUID).
Whenever an unregistered player (a player that doesn't have a dedicated section in the data file) logs in for the first time, the file is automatically updated with a new section for said player.
Every player's section can contain:
- "name" - the name of the player. This isn't used by the plugin, it's just to make manual editing easier.
- "predetermined_task" - here you can assign a predetermined task to the player. Next time the player rolls a task, it is guaranteed to be the text you wrote here, no matter what.
- "lives" - the number of lives this player currently has.
- "can_gift" - whether or not this player is currently able to use the /gift command. This gets set to "true" when a session starts, and "false" when the player uses /gift.
- "current_task"
- "item" - the name of the task item. This is used to identify the task item and remove it from the player's inventory when they pass/reroll/fail a task.
- "difficulty" - the difficulty of the task the player currently has. This is used to determine the reward/penalty the player should get when they pass/fail the task.
- "is_red" - whether or not the task the player currently has is a "red task". This is used to determine the reward/penalty the player should get when they pass/fail the task.
- "is_on_task_cooldown" - this value gets set to "true" when the player is viewing the "task obtain" sequence, and "false" when the sequence ends and the player receives their task. This is used to prevent the player from being able to get another task while they're currently receiving one (and before they get the item).
- "task_history" - a list of strings representing all of the tasks the player has had since the start of the season. This is used when the "can_player_get_repeat_tasks" or "can_tasks_appear_more_than_once" settings are turned on and it determines which tasks can not be given again.
Note that if the player has not yet participated in a session, some of these keys might not appear in the file at all!
They only appear once used.