public class EconomyManager
extends java.lang.Object
| Constructor and Description |
|---|
EconomyManager(boolean useVaultEcon,
org.bukkit.Material currencyItem,
MineCore mc) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
charge(org.bukkit.entity.Player p,
double amt)
Charges the player the given amount
|
org.bukkit.Material |
getCurrencyItem() |
net.milkbowl.vault.economy.Economy |
getVaultEconomy()
Gets the vault Economy being used, or null if vault is not in operation.
|
void |
give(org.bukkit.entity.Player p,
double amt)
Gives the player the defined amount of money
|
void |
setCurrencyItemID(org.bukkit.Material currencyItem) |
boolean |
useVaultEcon() |
public EconomyManager(boolean useVaultEcon,
org.bukkit.Material currencyItem,
MineCore mc)
public boolean charge(org.bukkit.entity.Player p,
double amt)
p - Player to chargeamt - Amount to charge them (converted to int if charged in items)public void give(org.bukkit.entity.Player p,
double amt)
p - Player to give toamt - Amount to give them (converted to int if items currency)public net.milkbowl.vault.economy.Economy getVaultEconomy()
public boolean useVaultEcon()
public org.bukkit.Material getCurrencyItem()
public void setCurrencyItemID(org.bukkit.Material currencyItem)
currencyItem - the currencyItem to set