Extra Information
Resetting Playtime Levels
You may want to reset the levels for various reasons; the most common one is for a new season/reset. Here's how to do it.
For v3.0.0 and above
The claimed playtime levels data is stored in the PDC (PlayerDataContainer). Spigot stores this in the default playerdata folder, which is world/playerdata. This is the same folder that stores the inventory, XP, and more data of a player.
When you reset for a season, this folder will typically be wiped anyway, along with all the rest of the player data.
For below v3.0.0
- The Playtime Data is stored in the world statistics folder. Turn off your server, go to
/world/statsand delete the folder.- Your "world" folder may be named differently depending on if you changed your default world in
server.properties - This will also delete player statistics from the in-game "Statistics" menu.
- Your "world" folder may be named differently depending on if you changed your default world in
- Turn your server back on and run the following command in the console. This will bulk delete all player permission nodes that tell the config which rewards have been claimed.
/lp bulkupdate users delete "permission ~~ meta.playtimelevels.%"
After running this command, you must run another command to confirm the action. It will let you know in the console what this command is.
This command makes use of LuckPerms' Bulk Update command. You can view their documentation here to learn more about the command.
All rewards show as claimed
(This should only happen on versions below v3.0.0)
Players with OP will see all rewards as claimed. To revoke this, give everyone the FALSE node on the permission: meta.playtimelevels.*.
This can be done on luckperms using the following command: /lp group default permission set meta.playtimelevels.* false
GUI doesn't open with /playtime
If the essentials response is used when you type /playtime, go into your Essentials config & add “playtime” under “disabled-commands:” then restart your server.