|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.milkbowl.vault.economy.EconomyManager
public class EconomyManager
Constructor Summary | |
---|---|
EconomyManager(JavaPlugin plugin)
Constructs a new instance of EconomyManager provided an instance of a JavaPlugin |
Method Summary | |
---|---|
EconomyResponse |
depositPlayer(java.lang.String playerName,
double amount)
Deposit amount to a player account |
java.lang.String |
format(double amount)
Formats value to human readable forms |
EconomyResponse |
getBalance(java.lang.String playerName)
Returns current player balance |
java.lang.String |
getName()
Accessor for Name of Economy |
EconomyResponse |
withdrawPlayer(java.lang.String playerName,
double amount)
Withdraw amount from a player account |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EconomyManager(JavaPlugin plugin)
plugin
- Your plugin (should be "this")Method Detail |
---|
public java.lang.String getName()
public java.lang.String format(double amount)
amount
- Value to format
public EconomyResponse getBalance(java.lang.String playerName)
playerName
- Player name
public EconomyResponse withdrawPlayer(java.lang.String playerName, double amount)
playerName
- Player nameamount
- Amount to withdraw
public EconomyResponse depositPlayer(java.lang.String playerName, double amount)
playerName
- Player nameamount
- Amount to deposit
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |