Jump to content

Unable to add market quantity

Closed 1.2.1

TwoShoes

I have all the items set to  "market_quantity": 50
The market buy price and sell price worked just fine but when trying to add the market quantity  to 50  it'll stay at 0 after reload. I even tried to unload the plugin add the price then reload and still the market says 0 when you /market.. Am I doing somthing wrong or is this an issue? Thank you for your time 

Edited by TwoShoes
Fingers to fat for keyboard, fixed mistakes

Share this comment


Link to comment
11 minutes ago, TwoShoes said:

I have all the items set to  "market_quantity": 50
The market buy price and sell price worked just fine but when trying to add the market quantity  to 50  it'll stay at 0 after reload. I even tried to unload the plugin add the price then reload and still the market says 0 when you /market.. Am I doing somthing wrong or is this an issue? Thank you for your time 

Are you editing the config file or the data file to set the values?

Editing the config will change the values on the data file, but if you are editing the data file, it is overwritten by the config on load.

Share this comment


Link to comment

I see the data file shows market quantity 0 but in the config it shows 50  should I just edit the data file and change all them to 50 as well?

Share this comment


Link to comment
3 minutes ago, TwoShoes said:

I see the data file shows market quantity 0 but in the config it shows 50  should I just edit the data file and change all them to 50 as well?

unload the plugin and give that a try for sure. Let me know how it goes. I might need to investigate the way the data is saved.

  • Like 1

Share this comment


Link to comment
Just now, TwoShoes said:

OK so I had to unload the plugin change both data and config market quantity then reload the plugin for it to see the changes

Ok no worries. I will look at the plugin and find out why its misbehaving. Closing this off for now. Keep an eye out for an update 🙂

  • Like 1

Share this comment


Link to comment
11 minutes ago, TwoShoes said:

Thank you for the help cant wait to let my VIP's  enjoy this plugin as much as I told them about it

Oh also, i just remembered I added a command for this xD

do /resetmarket in chat. This should reset the markets to reflect the config values.

I remember I stopped the market values from updating on load because they changed during the wipe, where as if they were to sync each load, they would always be reset to the configured values each time the server started up.

 

/resetmarket sets the values from the config to the market directly.


When the server wipes, the values from the config will be set to the market automatically as part of the OnNewSave hook.

Share this comment


Link to comment

Oh one more thing if I might add. Any chance of moving the icon over just a biit for servers that run zlevels? Thanks again1005103375_movingiconover.thumb.PNG.55c063894e05bbb2ddf9d20f04fedf86.PNG
All Hail imthenewguy !

Share this comment


Link to comment
2 minutes ago, TwoShoes said:

Oh one more thing if I might add. Any chance of moving the icon over just a biit for servers that run zlevels? Thanks again1005103375_movingiconover.thumb.PNG.55c063894e05bbb2ddf9d20f04fedf86.PNG
All Hail imthenewguy !

I can, but there are number of other plugins that take up the realestate as well. I will look at adding the option to move the UI stuff around per player.

  • Like 1

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.6k

Customers

Total customers served.

80.7k

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.