Jump to content

Not retaining rewards that have been entered

Pending 1.0.1

Rust Admin
Rust Admin

Posted (edited)

I spent an hour typing in all of the rewards, short name, amounts, etc.  I modified the config and restarted the plugin.
When I type /rmenu it says 'No rewards configured by admin yet.'

There is no data file for this plugin that stores the rewards.  Everything is held in memory?  On server restart or plugin reload, everything is gone. 

UPDATE:
With the help of the developer, I was able to determine that after you add rewards, they are saved in the CONFIG file...there is no data file for the rewards data.
Dont be like me and have the config file open in an editor, make changes to it and overwrite what was added when using /setrewards  🙂

Edited by Rust Admin
figured out the issue
Stuffy

Posted (edited)

Hello, Rust Admin!

OnlineRewards contains data file and config file. The data file stores information about the player (id, player's total online, awards that the player received). The config file stores the plugin settings and a list of awards (this is done in order to enable administrators to speed up the process of installing awards). Both of these files are not deleted after restarting the server or the plugin (o.reload OnlineRewards /c.reload OnlineRewards). The problem you are facing is due to the fact that you either accidentally deleted the config file or filled in the config file incorrectly. In these cases, the plugin writes "Error reading configuration: ..." to the server's command line and creates the default config. Try adding two awards using "/setreward" to see how the awards are saved in the config. After that, fill it out in the same way (if you decide to add rewards through the config). After that, OnlineRewards will work. If you have any questions or encounter any problems, do not hesitate to write to me, I will answer all your questions in detail.

Stuffy.

Edited by Stuffy
1.9m

Downloads

Total number of downloads.

8.7k

Customers

Total customers served.

130.5k

Files Sold

Total number of files sold.

2.7m

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.