mirror of
https://github.com/MilkBowl/Vault.git
synced 2025-03-01 02:31:05 +01:00
use internal hasEnough for essentials.
This commit is contained in:
parent
81dc226ec3
commit
d5591c148c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user