update CurrencyCore support for .6

This commit is contained in:
Sleaker 2012-01-31 08:11:49 -08:00
parent a01a1408eb
commit 8bead8b358
2 changed files with 2 additions and 3 deletions

Binary file not shown.

View File

@ -3,7 +3,6 @@ package net.milkbowl.vault.economy.plugins;
import is.currency.Currency;
import is.currency.syst.AccountContext;
import java.util.Arrays;
import java.util.List;
import java.util.logging.Logger;
@ -138,7 +137,7 @@ public class Economy_CurrencyCore implements Economy {
@Override
public EconomyResponse deleteBank(String name) {
if (this.currency.getAccountManager().hasAccount(name)) {
this.currency.getAccountManager().removeAccount(name);
this.currency.getAccountManager().deleteAccount(name);
return new EconomyResponse(0, 0, ResponseType.SUCCESS, "");
}
return new EconomyResponse(0, 0, ResponseType.FAILURE, "That account does not exist!");
@ -202,7 +201,7 @@ public class Economy_CurrencyCore implements Economy {
@Override
public List<String> getBanks() {
return Arrays.asList(this.currency.getAccountManager().getAccounts());
return this.currency.getAccountManager().getAccountList();
}
@Override