Closed Rikk010 closed 4 years ago
I think I see what happened. Can I assume that you installed the plugin, started your server, joined your server, stopped your server and then set the CountAllPlaytime to false? If this is correct then your playerdata file has saved the playtime from before the plugin was installed on the first time you joined (cause the setting is true by default) and thus telling you that you've already played for a day when doing /playtime. After that you've set the CountAllPlaytime to false and the reward menu will say you still need 2 hours of playtime because you have actually not played yet after the plugin was installed.
This is not a bug but rather a bad implementation on my part. I'll fix this in the next update. For now you can fix your /playtime by simply stopping your server, opening your userdata file and setting the playtime to 0 and starting your server again.
I think I see what happened. Can I assume that you installed the plugin, started your server, joined your server, stopped your server and then set the CountAllPlaytime to false? If this is correct then your playerdata file has saved the playtime from before the plugin was installed on the first time you joined (cause the setting is true by default) and thus telling you that you've already played for a day when doing /playtime. After that you've set the CountAllPlaytime to false and the reward menu will say you still need 2 hours of playtime because you have actually not played yet after the plugin was installed.
This is not a bug but rather a bad implementation on my part. I'll fix this in the next update. For now you can fix your /playtime by simply stopping your server, opening your userdata file and setting the playtime to 0 and starting your server again.
That is not what i rtried to do let me explain it better
I installed the plugin 2 months ago and added a reward for 20 minutes playtime, works fine. At this time i have 1 day playtime according to /playtime
And i wanted to add a reward for 2 days of playing time for the active players. What i did was:
I just want it to count the playtime for the new reward
That changes everything, that's intentional. The playtime counted towards that reward will only start from whenever the reward was configured. Any playtime from before it was configured will not be counted towards that reward.
No way to make an option for that? using a command /lpr bulkupdateplaytime [reward]
I could possibly add an option to each reward to add the current playtime of players from before the reward was configured to the playtime counted towards that reward.
The playtime that was counted by the plugin itself(/playtime returns 1 day) but in the /reward menu i need to still need to get 2 days(which should be 1 day since i already played for a day) config: `#Should the plugin check for updates? UpdateChecker: true
Allow the plugin to collect anonymous data from your server for a better understanding who and how people are using this plugin.
There is really no reason to opt-out, but here it is!
bStats: true
After how much playtime should the player data be autosaved?
In minutes, minimum is 1.
AutoSave: 5
How long should the plugin save the playerdata in cache after logout?
This will save performance for RAM.
In minutes, minimum is 0.
TimeKeepDataInCache: 5
Should the plugin also count playtime from before it was installed?
It will not give rewards for this playtime.
CountAllPlaytime: false
Should claiming rewards be disabled in any worlds?
Rewards that require claiming will be put into pending state until in allowed world.
DisableGettingRewardsInWorlds:
- world
(*) are required fields for a reward.
Rewards:
Reward names should be unique.