ChestShop-3/com/Acrobot/ChestShop/Economy/Vault.java
Acrobot c3b084fd1a - Added statistics to the plugin
- Added shop refund message
- Recoded Register for ChestShop
- Added VAULT support (Register is used when no Vault is found)
- Added Heroes exp option for granting exp for shop creation
- EXPERIMENTAL: Option to cause BlockState.update() every transaction (probably doesn't work, as Block.applyPhysics() is needed)
- Added ChestShop.nofee permission for free shop creation (and no refunds)
- Added a separate Admin Shop tax option
-
2012-01-25 16:32:34 +01:00

33 lines
781 B
Java

package com.Acrobot.ChestShop.Economy;
/**
* @author Acrobot
*/
public class Vault implements EcoPlugin {
public static net.milkbowl.vault.economy.Economy economy;
public boolean hasAccount(String player) {
return economy.hasAccount(player);
}
public void add(String player, double amount) {
economy.depositPlayer(player, amount);
}
public void subtract(String player, double amount) {
economy.withdrawPlayer(player, amount);
}
public boolean hasEnough(String player, double amount) {
return economy.has(player, amount);
}
public double balance(String player) {
return economy.getBalance(player);
}
public String format(double amount) {
return economy.format(amount);
}
}