McMoney

McMoney

PLEASE GIVE ME IDEAS FOR THINGS TO ADD TO THIS

McMoney is like most economy systems made for minecraft but I feel is much easier to add to plugins. it has the general commands such as
/money and /pay (will explain the commands later on in this post). In the config you can set the name of the money and the starting amount of money.

You can give people interest if you allow it in the config. It works the same way as real interest works. The default is a 2.5% interest rate. If you don't know anything about interest this is how it works

A = P(1+R)^T
A = New amount
P = Current amount
R = Rate / 100
T = Time

If you have $5,287 with an interest rate of 2.5% after a year (in the plugin it would be every hour as if it was a year) it will be this
A = 5,287 * ((1 + .025)^1)
A = 5,419.16

Commands:

  • /money [player] - show the amount of money you or another player has
  • /pay <player> <amount> - pay players
  • /mcadmin <set | add | remove> <player> <amount> - admin commands

How to add to plugins:

Get the plugin with
MoneyAPI money = MoneyAPI.getInstance();

then use these

  • addMoney(player name, amount); - gives the player money
  • removeMoney(player name, amount); - removes money from the player
  • getMoney(player name); - get amount player has
  • setMoney(player name, amount); - sets the amount of money a player has
  • hasMoney(player name); - returns if the player exists or not
  • createPlayerMoney(player name); - add that name to the money file with the starting amount of money
  • getMoneyString(amount); - gets the string of the money (ex. 153.7 duckets)

    example
    MoneyAPI money = MoneyAPI.getInstance();
    money.addMoney(player.getName(), 100);
    this will add 100 to the players money

TODO:

  • GREEN - Being worked on
  • RED - Not yet started
  • BLUE - In testing

Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

  • Project ID
    36200
  • Created
    Jan 31, 2012
  • Last Released File
    Dec 15, 2015
  • Total Downloads
    106,502
  • License

Categories

Members

Recent Files