In the above example, users can buy/sell emerald, stone, all types of wood, and diamond.
Diamond's price is 2. That means that users can buy 1 diamond for 2 currency, and can sell it for 1 currency.
Stone's price is -64. That means that users can buy 64 stone for 1 currency, and can sell 65 stone for 1 currency.
The name you see is the name users will see. It is recommended to make it clear what the item is.
Notice how the data is set for each of the types of wood. The prices for each type are independent.
For emerald, "static" is set to true. This means that the price will not change when users buy/sell emeralds. This is useful if your economy has a "base unit." For example, some admins may want to make it so that gold ingots are always worth 100 currency.
Note: Item names currently cannot have spaces. That's why dashes are used above.
example config.yml:
buy-sell-difference:1price-change:1
This means that the difference between the buy and sell prices will always be one (unless the item is static)
Every time the item is bought or sold, its price will change by 1 currency.
You should not change the signs.yml. It has the signshop locations and will change automatically.
Commands
/buy: Gives the user a list of items currently available to buy, along with their prices
/buy <item>: Buys the item for the current price.
/sell: Gives the user a list of items currently available to sell, along with their prices
/sell: <item> Sells the item for the current price.
/shop reload: reloads prices from prices.yml
Permissions
dynamicprices.buy: Allows the /buy command
dynamicprices.sell: Allows the /sell command
dynamicprices.shop: Allows the /shop command
SignShops
On the first line, add: "[shop]"
On the second line, add the item name.
Prices will automatically be displayed.