Fix economy support (Closes #8)
This commit is contained in:
		@@ -53,7 +53,7 @@ public class EconomyHandler {
 | 
			
		||||
			economy.withdrawPlayer(player, amount);
 | 
			
		||||
			economy.depositPlayer(target, amount);
 | 
			
		||||
		}
 | 
			
		||||
		return false;
 | 
			
		||||
		return true;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	public static boolean chargePlayer(Player player, UUID target, double amount) {
 | 
			
		||||
@@ -64,7 +64,7 @@ public class EconomyHandler {
 | 
			
		||||
			economy.withdrawPlayer(player, amount);
 | 
			
		||||
			economy.depositPlayer(Bukkit.getOfflinePlayer(target), amount);
 | 
			
		||||
		}
 | 
			
		||||
		return false;
 | 
			
		||||
		return true;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	public static boolean chargePlayer(Player player, double amount) {
 | 
			
		||||
@@ -73,7 +73,7 @@ public class EconomyHandler {
 | 
			
		||||
			if(!economy.has(player, amount)) return false;
 | 
			
		||||
			economy.withdrawPlayer(player, amount);
 | 
			
		||||
		}
 | 
			
		||||
		return false;
 | 
			
		||||
		return true;
 | 
			
		||||
	}
 | 
			
		||||
	
 | 
			
		||||
	public static String format(int amt) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user