Hello,
I think I might have found a bug in the plugin, or maybe it’s not working exactly as I understood.
As shown in the attached screenshot, I added a product (apple) to the stock market and left "Allow Re-Purchase From Server": true. My understanding (I could be wrong) is that when players sell X apples to the server, then other players should only be able to purchase up to that X amount. In other words, they shouldn’t be able to buy more than what has been sold to the server.
However, I couldn’t get this system to work. For example, if players sell 100 apples to the server, other players are still able to buy more than 100. Also, even when I set a limit, sometimes players are able to sell more than they should.
I will attach the screenshots and the JSON config file. (The config is from the default plugin settings when first installed, I only modified it to sell apples in data/st/sm/config/money.json.)
Thanks!
"Server Sell Items (shortname : [ skinId : ItemConfig ])": { "apple": { "0": { "Default Sell Amount Calculation (DSAC) (Read On Website)": 10, "Price - Min": 0.08, "Price - Max": 0.25, "Price Parent - Shortname (ignore, if empty)": "", "Price Parent - Skin ID": 0, "Price Parent - Min Boost": 0.0, "Price Parent - Max Boost": 0.0, "Max Daily Sell Amount (-1, to disable)": 15, "Max Daily Sell Amount Permissions (permission: limit)": { "shoppystock.selllimit.1": 100 }, "Allow Re-Purchase From Server": true, "Override Skinned Items As Unskinned (works only for configuration of skinId 0)": false } } }