mirror of
https://github.com/MilkBowl/Vault.git
synced 2025-02-20 14:21:32 +01:00
Revert "make sure we don't go negative for Essentials eco"
This reverts commit 76d12af873
.
This commit is contained in:
parent
5a452a3f4e
commit
463c7104a7
@ -103,10 +103,6 @@ public class Economy_Essentials implements Economy {
|
||||
String errorMessage = null;
|
||||
|
||||
try {
|
||||
balance = com.earth2me.essentials.api.Economy.getMoney(playerName);
|
||||
if (balance - amount < 0) {
|
||||
return new EconomyResponse(0, balance, ResponseType.FAILURE, "Not enough funds!");
|
||||
}
|
||||
com.earth2me.essentials.api.Economy.subtract(playerName, amount);
|
||||
balance = com.earth2me.essentials.api.Economy.getMoney(playerName);
|
||||
type = EconomyResponse.ResponseType.SUCCESS;
|
||||
|
Loading…
Reference in New Issue
Block a user