@Override
public EconomyResponse withdrawPlayer(String playerName, double amount) {
if (amount < 0) {
return new EconomyResponse(0, 0, ResponseType.FAILURE, "Cannot withdraw negative funds");
}
if (has(playerName, amount)) {
economy.getVaultConnector().withdrawPlayer(playerName, amount);
return new EconomyResponse(amount, getBalance(playerName), ResponseType.SUCCESS, null);
} else {
return new EconomyResponse(0, getBalance(playerName), ResponseType.FAILURE, "Insufficient funds");
}
}