Jump to content

Reward Currency Defaults to Scrap

Pending 3.1.3

I have found that for some reason every time my server wipes the reward currency defaults back to scrap. when I look in the config I have scrap and economics set to false and server rewards set to true but it still gives scrap. This has happened multiple wipes in a row and I have found a workaround where changing the reward currency to scrap, reloading the plugin, then changing it back to server rewards fixes it but it's kind of annoying to do every wipe. 

Share this comment


Link to comment

Hi,
The only thing I can think of is maybe a timing issue where ServerRewards isn't fully loaded when RustRewards is doing its initial checks.
It's not an issue here on my test server but I suppose it's still possible.

I've had a few similar requests so I'm going to add a new currency option for .None, which will be the new default,
to prevent payouts in the event of an issue,
but also I'm going to detect when Economics and ServerRewards are loaded/reloaded, and ensure that currency is set according to config at that time too.
Hopefully that should resolve it.

Thanks for reporting! 👍

Share this comment


Link to comment

We also get the same issue on our server. This does not happen when we restart our server daily but it happens every time we map wipe. We also delete the ServerRewards and RustRewards data which I assume is causing the ServerRewards plugin to take longer on its data initialization on server startup.

 rm /serverfiles/oxide/data/ServerRewards/player_data.json
 rm /serverfiles/oxide/data/RustRewards.json

When I manually restart RustRewards after the server has started on wipe then it works correctly again.
 

Edited by ZaphireZA

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.7k

Customers

Total customers served.

82k

Files Sold

Total number of files sold.

1.6m

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.