package com.Acrobot.ChestShop; import com.nijikokun.register.payment.Method; /** * @author Acrobot * Economy management */ public class Economy { public static Method economy; public static boolean hasAccount(String p) { return economy.hasAccount(p); } public static void add(String name, float amount) { economy.getAccount(name).add(amount); } public static void substract(String name, float amount) { economy.getAccount(name).subtract(amount); } public static boolean hasEnough(String name, float amount) { return economy.getAccount(name).hasEnough(amount); } public static double balance(String name) { return economy.getAccount(name).balance(); } public static String formatBalance(double amount) { return economy.format(amount); } }