Jump to content

Not correct kits.reset data player

Pending 2.1.6

ZIZI
ZIZI

Posted

Hi. kis.reset data is not working correctly. After executing the command, the player's data file is deleted, and the lock time remains. The fact is that your Dictionary collection is not being cleared, and without restarting the plugin, everything still remains in memory. Fix it, it will take a couple of minutes!!! Thank you.

ZIZI

Posted

Also, the chance backlight is not working correctly. If the chance is less than 100, it should show the probability of the chance. I made a temporary solution for myself. I wish it was like this

var color = _config.RarityColors.Find(x => x.Chance == kitItem.Chance); 
				 color = new RarityColor(kitItem.Chance, "#A0A935");
				//if (color != null)
				if (color != null && kitItem.Chance <= 99){ .........}

 

MeventSupport

Posted

Hi, please clarify what is the meaning of "Save given kits (via the kits.givekit command) on wipe?" in your config?

ZIZI

Posted

Hi. Let me get this straight: what does Save given kits have to do with it?
I wrote about kits.reset data player, it doesn't work. To be more precise, the data is erased only in the file and it is temporary. After restarting the plugin or restarting this player, the data that should be erased, remain in the collection Dictonary and accordingly restore the record in the player's data file and then again update the collection, the result, data player is not erased.

For example, a player gets the privilege for 7 days and he has KIT access. He took the KIT and he has a cooldown of 24 hours. So he took the KIT 20 minutes before the privilege expires and he has a cooldown of 24 hours. The player 2 hours later bought the privilege, but he can't activate the KIT because he has a cooldown of 24 hours. I need to reset everything for the player, reading the plugin description - there is a function to delete (reset) player data-->>> kits.reset player data.  

Or is it not so?

ZIZI

Posted

image.png.6505dec0156ab2c3ae4a4d3bc1126502.png

image.png.ffc605b288098df246cc42beeef0c57e.png

image.png.380b48a47baa358668f590ee1d2b7f13.png

I was expecting the wait counters to reset to zero.

ZIZI

Posted

10 hours ago, MeventSupport said:

it was done for a player who's online?

Yes, the player was online, and restarting the plugin only resulted in restoring the player's data file, which had been erased.

MeventSupport

Posted

14 hours ago, ZIZI said:

Yes, the player was online, and restarting the plugin only resulted in restoring the player's data file, which had been erased.

Accepted. I'll check it out and fix it

  • Like 1
ZIZI

Posted

Hi. More than a month has passed, will there be any changes?

1.7m

Downloads

Total number of downloads.

8k

Customers

Total customers served.

121.5k

Files Sold

Total number of files sold.

2.5m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.