MySQL Currency Manager

Warning!!! You MUST have access to a MySQL server in order to run this plugin. It stores information entirely on that server. You will also have to provide a username and password with read / write access to a database on the server.
This is a simple plugin that adds a very simple MySQL-dependent base economy system to your server. The commands are listed below;

Admin Commands

Only admins on the server can use these commands. These include editing individual player's accounts and the pricing of items.
/setmoney [player] <amount>
  • Sets the amount of money in your account to a specified amount.
  • If a player is provided, it sets the money in their account.
/addmoney [player] <amount>
  • Adds the specified amount of money to your account.
  • If a player is provided, it adds the money to their account.
  • Don't forget, you can remove money from player's accounts my adding negative money.
/setbuy <price>
  • Sets the buying price of the item in your hand.
/setsell <price>
  • Sets the selling price of the item in your hand.
/setprice <price>
  • Sets both the buying and selling price of the item in your hand.

Normal Commands

These commands can be used by anybody, OP or not.
/money [player]
  • Gets your account balance.
  • If an argument is provided, and the user has admin permissions, it will display the account balance of the player provided.
/price
  • Gets the buying and selling price of the item in your hand.
/buy <amount>
  • Buys more of the specified amount of the item in your hand.
/sell [amount]
  • Sells every item in your hand.
  • If an argument is provided, it sells up to that many items of the same type from your inventory.
Do note that starting this plugin up for the first time may be fairly slow, as it is generating the necessary tables to hold the item price information.

Feasible Future Features

  • Make item name pluralization work better in more situations

Comments

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

About This Project

Categories

Members

Recent Files

Bukkit