use internal hasEnough for essentials.

This commit is contained in:
Sleaker 2012-02-27 10:52:48 -08:00
parent 81dc226ec3
commit d5591c148c

View File

@ -211,7 +211,11 @@ public class Economy_Essentials implements Economy {
@Override
public boolean has(String playerName, double amount) {
return getBalance(playerName) >= amount;
try {
return com.earth2me.essentials.api.Economy.hasEnough(playerName, amount);
} catch (UserDoesNotExistException e) {
return false;
}
}
@Override