05. Item Settings


Price calculation formula
Price = (Median * Value) / Stock
Components of item data
Purchase Value
One of the factors that determines the purchase price of an item.
Sales Value
One of the factors that determine the selling price of an item. By default, it has the same value as the purchase value. Normally, sales tax is applied, so shop users sell items at a lower price than they bought them. If a separate sales value is specified, sales tax is ignored.
Price Min
The item price cannot be less than this value.
Price Max
The item price cannot be greater than this value.
Median
The median is the reference point for stock. stock values change as shoppers buy and sell, but the median is always fixed. The larger the median, the slower the price changes. Conversely, the smaller the median, the faster the price changes.
Stock
Indicates how many of this item are in the store. If stock equals median, then price equals value. If inventory is less than the median, it means that the item is currently in short supply relative to demand. So the price goes up.
Stock Max
When the stock reaches its maximum value, users will no longer be able to sell this item to the store.
Set to recommended

Press the button at the bottom center of the screen to automatically set all values. The recommended value is based on the Shop.NumberOfPlayer entry in config.yml and data in the Worth.yml file.
Buy only, Sell only

On the item trading screen, press the button on the left side of the screen. Or use the following command.
/ds shop <shop name> sellbuy <sellonly|buyonly|clear>
Infinite stock
Setting the stock to -1 makes the stock infinite.
Fixed price
If you set the median to -1, the price will not change.
Discount

You can set the discount rate for each item. Use the editAll command to apply it to all items in the store.
/ds shop <shop name> editall discount = 50
Trading volume limit

You can set a limit on the quantity a player can buy/sell within a certain period of time. If you sell an item with a purchase limit, the limit will increase, and vice versa.
You can reset only the trading volume while maintaining the trading volume limit setting.
/ds shop <shopName> resetTradingVolume [<player>]
Note that if you edit the itemMeta of an item with Notepad, it will be treated as a different item. (The trading volume limit for that item will be reset.)
Last updated