This is an addon for the
ShopGUI+ plugin that allows you to add items with a dynamic price.

Features :
Support only Vault economy (others untested)
Supports all hooks supported by ShopGUIPlus
This addon allows you to add 3 types of dynamic shop for items: DYNAMIC, RECIPE and STOCK
It is possible to make a RECIPE with ingredients in static (classic), dynamic, STOCK or RECIPE (totally recursive) economy.
A system of buying and selling limits within a defined period.
The plugin was developed with the aim of avoiding lag or slowdowns as much as possible, so many features are asynchronous.
Type of DynaShop :
DYNAMIC: The price changes with each sell or buy. You can set a min and max price.
RECIPE: is the sum of the prices of each ingredient
STOCK: Prices vary based on available stock. The less stock there is, the higher the price. This mode is dependent on the min and max price
Commands :
/dynashop reload - reload the plugin
Permissions :
dynashop.reload : grants the user access to reload the configuration
config.yml
Code (YAML):
# Database Configuration
database:
type
: SQLITE
# MYSQL or SQLITE
mysql:
host
:
"localhost"
port
: 3306
name
:
"dynashop"
table-prefix
:
"dynashop"
username
:
"root"
password
:
""
sqlite:
file
:
"dynashop.db"
# Dynamic store configuration
actions:
shaped
: 1.2
shapeless
: 1.1
furnace
: 1.5
time-period
: 15
# Duration of dynamic pricing period (in minutes)
default:
price-min-multiply
: 0.5
# Minimum multiplier for dynamic pricing
price-max-multiply
: 2.0
# Maximum multiplier for dynamic pricing
price-min
: 0.01
# Minimum price for dynamic pricing
price-max
: 1000.0
# Maximum price for dynamic pricing
price-margin
: 0.1
# Price margin for dynamic pricing
buy-growth-rate
: 1.00005
# Growth rate for dynamic pricing
buy-decay-rate
: 0.99998
# Decline rate for dynamic pricing
sell-growth-rate
: 1.00002
# Growth rate for dynamic pricing
sell-decay-rate
: 0.99995
# Decline rate for dynamic pricing
price-increase
: 1.0001
# Price increase for dynamic pricing
price-decrease
: 0.9999
# Price decrease for dynamic pricing
stock-min
: 0
# Minimum stock for dynamic pricing
stock-max
: 1000000
# Maximum stock for dynamic pricing
stock-buy-modifier
: 0.5
# Stock modifier for dynamic pricing
stock-sell-modifier
: 2.0
# Stock modifier for dynamic pricing
lang.yml
Code (YAML):
stock:
out-of-stock
:
"This item is out of stock!"
full-stock
:
"This item is in full stock, we cannot sell more!"
limit:
cannotbuy
:
"&cLimit reached! You can only buy %limit% more of this item at this time."
cannotSell
:
"&cLimit reached! You can only sell %limit% more of this item at this time."
reached
:
"&cYou have reached your limit. Try again in %time%"
limit
:
"&cYou have reached your limit for this item."
To do :
- Static STOCK
- Custom recipe
- Add type of recipe