Dynamic Prices

This project is abandoned and its default file will likely not work with the most recent version of Minecraft. Whether this project is out of date or its author has marked it as abandoned, this project is no longer maintained.

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?)

Comments

  • To post a comment, please or register a new account.
Posts Quoted:
Reply
Clear All Quotes

About This Project

Categories

Members

Recent Files