mirror of
https://github.com/MilkBowl/Vault.git
synced 2024-11-27 13:07:23 +01:00
added player account creation fix to EssEco
This commit is contained in:
parent
02c4e0b22c
commit
a7c1b34232
@ -97,14 +97,10 @@ public class Economy_Essentials implements Economy {
|
||||
|
||||
@Override
|
||||
public boolean createPlayerAccount(String playerName) {
|
||||
try {
|
||||
com.earth2me.essentials.api.Economy.add(playerName, 0);
|
||||
return true;
|
||||
} catch (UserDoesNotExistException e1) {
|
||||
return false;
|
||||
} catch (NoLoanPermittedException e1) {
|
||||
if (hasAccount(playerName)) {
|
||||
return false;
|
||||
}
|
||||
return com.earth2me.essentials.api.Economy.createNPC(playerName);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user