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