From 8b959e18f208b333cfd22fba780c2ac9f3690174 Mon Sep 17 00:00:00 2001 From: Sleaker Date: Tue, 17 Jan 2012 18:35:12 -0800 Subject: [PATCH] fix create player account in register implementation --- src/net/milkbowl/vault/VaultEco.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/net/milkbowl/vault/VaultEco.java b/src/net/milkbowl/vault/VaultEco.java index a80abe9..5f884cc 100644 --- a/src/net/milkbowl/vault/VaultEco.java +++ b/src/net/milkbowl/vault/VaultEco.java @@ -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) {