This means real life stock, for set limit of buy/sell times, please view Products page.
Set dynamic value for your product configs
The plugin itself does not store stock data, however, the logic of stock is essentially that player A sells an item to the shop, then the shop can sell the item sold by player A to player B. You only need to set a buy limit, and the value of the buy limit is the number of times the product is sold globally, that is, the placeholder: {server-times-server}. Read dynamic prices before read this page. Similar to Dynamic Prices, if you want to make stock system, do it in buy-limits option and put {server-times-server} placeholder in it, for example:
buy-limits option to {sell-times-server} . For sell limits, you need write {buy-times-server} here. Replace the placeholder to {buy-times-player} and {sell-times-player} to make the stock be per player.
buy-limits-reset-mode option to 'NEVER'
In this way, we can ensure that players can only purchase items in the same quantity as the sell times (means restocking by other players sell it)
FAQ: Restock
The person who asked this question didn't understand this plugin at all. Your stock is achieved by setting a buy limit for the product. To restock, it is essentially resetting the buy times.
This content of auto reset buy/sell times is introduced on this page.
Use command /shop setselltimes <shop> <product> global <newStockPlusNowSellTimes>. If you want to restock 50 amount, and the now sell time is 75, then you need put 125 to <newStockPlusNowSellTimes>.