NathanCollaert / RewardsLite

A lightweight, advanced and very customizable plugin that gives rewards to players at specific playtimes.
MIT License
15 stars 12 forks source link

In-game playtime vs userdata playtime vs reward playtime issues. #32

Closed CallistoMC55 closed 2 years ago

CallistoMC55 commented 2 years ago

So, in the rewards.yml file I have the "Well known" rank set to be 1200 minutes (20 hours) I have it set in this image @ 650 mins to test

SC3

In game, I have 23 hours+

SC1

For some reason, when I am looking at rewards in game, the remaining time to get the reward is 4 hours?

SC4

When looking at the player data I am unsure what the format the values are in. SC2 SC5

NathanCollaert commented 2 years ago

Hi there, is it possible that you have set the "well known" rank to 4 hours in the past?

Currently LPR does not refresh timeTillNextReward if a reward required time has been altered. E.g. if you set a reward to require 4 hours and log in as player, then alter the reward to require 2 hours. The reward for the players who had already logged in when the reward was 4 hours will still be 4 hours until the reward has been claimed or it has been removed from their userdata.

This bug has been fixed in the complete overhaul of LPR which will be released this weekend!

CallistoMC55 commented 2 years ago

Hey! So, does that mean if I reset the userdata then reimplement the rewards.yml with the correct amounts of time it should fix the issue?

If not I can just wait for the update :)

thanks for the help!

NathanCollaert commented 2 years ago

If you set the reward in the rewards.yml to 2 hours and then reset the userdata it should fix itself yes.

CallistoMC55 commented 2 years ago

Awesome! I got it all fixed. Thanks!