mirror of
https://github.com/MilkBowl/Vault.git
synced 2024-12-31 21:37:58 +01:00
fix create player account in register implementation
This commit is contained in:
parent
379e8d2b07
commit
8b959e18f2
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user