money
Money
Get players money
it's is very easy to get someone's money:
Money money = UnderApi.getMoney(Player, Currency);
this will return a Money object with this money object you can this;
money.setMoney(Double); money.getMoney(); // returns the players money money.addMoney(Double); money.removeMoney(Double); money.payMoney(Player, Double); //player is the player to who you pay money
Events
- setMoney will trigger the ChangeMoneyEvent and the SetMoneyEvent
- addMoney will trigger the ChangeMoneyEvent and the AddMoneyEvent
- removeMoney will trigger the ChangeMoneyEvent and the RemoveMoneyEvent
- payMoney will trigger the ChangeMoneyEvent and the PayMoneyEvent
Comments