promotional bannermobile promotional banner

Dynamic Prices

Abandoned
a server-wide shop with changing prices

Dynamic Prices creates a server-wide shop with changing prices. It is similar to DynamicEconomy, but aims to be more simple and easier to understand.

How It Works

  • Starting prices are configurable.
  • Each time a user buys an item, its price increases by 1.
  • A user can sell an item for one less than the buying price.
  • Each time a user sells an item, its price decreases by 1.

Features

  • Uses Vault.
  • Allows for custom damage values. (For example, birch wood would have a different price than oak wood.)

Video

Thanks to IngrownPenguin!

Configuration (Changed with 0.2.1!)

There are three configuration files: config.yml, prices.yml, and signs.yml Example prices.yml:

emerald:
  id: 388
  price: 1
  static: true
stone:
  id: 1
  price: -64
oak-wood:
  id: 17
  price: -96
spruce-wood:
  id: 17
  data: 1
  price: -95
birch-wood:
  id: 17
  data: 2
  price: -97
jungle-wood:
  id: 17
  data: 3
  price: -96
diamond:
  id: 264
  price: 2
  • 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: 1
price-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. editing a signshop Prices will automatically be displayed. finished signshops
  • Left click on the sign to buy.
  • Right click to sell.

Todo

  • Add a command to manually change prices
  • Add more config settings (suggestions?)

The Dynamic Prices Team

profile avatar
Owner
  • 5
    Projects
  • 184.5K
    Downloads

More from sfinnqsView all

  • Advascore project image

    Advascore

    • 1.0K
    • Bukkit Plugins

    Score players by advancements!

    • 1.0K
    • October 3, 2019
    • Bukkit Plugins
  • ColoredPlayerNames project image

    ColoredPlayerNames

    • 180.3K
    • Bukkit Plugins

    Add random (configurable) color to your username in all parts of the game!

    • 180.3K
    • October 3, 2019
    • Bukkit Plugins
    • +1
  • Dynaprice project image

    Dynaprice

    • 1.0K
    • Bukkit Plugins

    A very simple economy plugin where prices change with supply and demand.

    • 1.0K
    • August 16, 2015
    • Bukkit Plugins
  • Timed Difficulty project image

    Timed Difficulty

    • 758
    • Bukkit Plugins

    Peaceful by day, hard by night!

    • 758
    • January 3, 2013
    • Bukkit Plugins
    • +1
  • Advascore project image

    Advascore

    • 1.0K
    • Bukkit Plugins

    Score players by advancements!

    • 1.0K
    • October 3, 2019
    • Bukkit Plugins
  • ColoredPlayerNames project image

    ColoredPlayerNames

    • 180.3K
    • Bukkit Plugins

    Add random (configurable) color to your username in all parts of the game!

    • 180.3K
    • October 3, 2019
    • Bukkit Plugins
    • +1
  • Dynaprice project image

    Dynaprice

    • 1.0K
    • Bukkit Plugins

    A very simple economy plugin where prices change with supply and demand.

    • 1.0K
    • August 16, 2015
    • Bukkit Plugins
  • Timed Difficulty project image

    Timed Difficulty

    • 758
    • Bukkit Plugins

    Peaceful by day, hard by night!

    • 758
    • January 3, 2013
    • Bukkit Plugins
    • +1