fix create player account in register implementation

This commit is contained in:
Sleaker 2012-01-17 18:35:12 -08:00
parent 379e8d2b07
commit 8b959e18f2

View File

@ -55,12 +55,11 @@ public class VaultEco implements Method {
}
public boolean hasBankAccount(String bank, String name) {
return this.economy.isBankOwner(bank, name).transactionSuccess()
|| this.economy.isBankMember(bank, name).transactionSuccess();
return this.economy.isBankOwner(bank, name).transactionSuccess() || this.economy.isBankMember(bank, name).transactionSuccess();
}
public boolean createAccount(String name) {
return this.economy.createBank(name, "").transactionSuccess();
return this.economy.createPlayerAccount(name);
}
public boolean createAccount(String name, double balance) {