config.yml

PriceModifier

The plugin has a system that will allow to modify the sale price or purchase according to a permission.

# Allows to change the sale or serious purchase price has permission
pricesModifier:
  - permission: "zshop.prices.vip"
    type: SELL
    modifier: 1.5 # Multiplie sell price by x1.5 (+50%, 10 * 1.5 = 15)
  - permission: "zshop.prices.eternal"
    type: SELL
    modifier: 2.0 # Multiplie sell price by x2.0 (+100%, 10 * 2.0 = 20)
  - permission: "zshop.prices.legend.buy"
    type: BUY
    modifier: 0.9 # Multiplie buy price by x0.9 (-10%, 10 * 0.9 = 9)
  - permission: "zshop.prices.legend.sell"
    type: SELL
    modifier: 3.0 # Multiplie sell price by x3.0 (+200%, 10 * 3.0 = 30)

To add a new permission just do as in the example if below. Be careful, this is a list, so it’s important to put the - before starting. You can see it, it is present before each permission. A price modifier is therefore composed of a permission, a type (SELL or BUY) and a modifier.

Config.yml file

Last updated