Revert "make sure we don't go negative for Essentials eco"

This reverts commit 76d12af873.
This commit is contained in:
Sleaker 2012-02-08 13:03:35 -08:00
parent 5a452a3f4e
commit 463c7104a7
1 changed files with 0 additions and 4 deletions

View File

@ -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;