How to use ?
The configuration is done directly in the shops files of the ShopGUI+ plugin.
It is absolutely necessary to leave buyPrice and sellPrice, otherwise the ShopGUI+ plugin considers that it is not possible to sell or buy.
Type -
DYNAMIC :
Required : min & max
Optional : growth & decay
Code (YAML):
30:
type
: item
item:
material
: GOLD_NUGGET
quantity
: 1
typeDynaShop
: DYNAMIC
buyPrice
: 150
buyDynamic:
min
: 100
max
: 200
growth
: 1.000005
decay
: 0.999995
sellPrice
: 15
sellDynamic:
min
: 10
max
: 20
growth
: 1.000005
decay
: 0.999995
slot
: 38
page
: 1
Type -
RECIPE:
Optional : recipe.type
Code (YAML):
21:
type
: item
item:
material
: GOLD_BLOCK
quantity
: 1
typeDynaShop
: RECIPE
recipe:
type
: SHAPED
#SHAPED or SHAPELESS or FURNACE
buyPrice
: 15000
sellPrice
: 1500
slot
: 29
page
: 1
Type -
STOCK :
Required : min & max
Optional : stock base, min, max, buyModifier & sellModifier
Code (YAML):
13:
type
: item
item:
material
: LAPIS_LAZULI
quantity
: 1
typeDynaShop
: STOCK
buyPrice
: 500
buyDynamic:
min
: 300
# Default : 0
max
: 700
# Default : Integer.MAX_VALUE
sellPrice
: 50
sellDynamic:
min
: 30
# Default : 0
max
: 70
# Default : Integer.MAX_VALUE
stock:
base
: 1000
# Default : 0
min
: 0
# Default : 0
max
: 10000
# Default : Integer.MAX_VALUE
buyModifier
: 1.0
# Default : 1.0
sellModifier
: 1.0
# Default : 1.0
To display in shops :
Code (YAML):
shopItemLoreFormat
:
# This lore will be applied to items
item:
- "&7Buy price
:
&c%dynashop_current_buy%"
- "&7Sell price
:
&a%dynashop_current_sell%"
# - "&7Buy price: &c%dynashop_current_buyPrice%$ &7(&c%dynashop_current_buyMinPrice%$ - %dynashop_current_buyMaxPrice%$&7)"
# - "&7Sell price: &a%dynashop_current_sellPrice%$ &7(&c%dynashop_current_sellMinPrice%$ - %dynashop_current_sellMaxPrice%$&7)"
For LIMIT system :
Code (YAML):
30:
type
: item
item:
material
: GOLD_NUGGET
quantity
: 1
buyPrice
: 150
sellPrice
: 15
limit:
sell
: 100
buy
: 100
cooldown
: MONTHLY
# for one month
# cooldown: 3600 # in seconds (1 hour)
slot
: 38
page
: 1