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
|
@Override
|
||||||
public boolean createPlayerAccount(String playerName) {
|
public boolean createPlayerAccount(String playerName) {
|
||||||
try {
|
if (hasAccount(playerName)) {
|
||||||
com.earth2me.essentials.api.Economy.add(playerName, 0);
|
|
||||||
return true;
|
|
||||||
} catch (UserDoesNotExistException e1) {
|
|
||||||
return false;
|
|
||||||
} catch (NoLoanPermittedException e1) {
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
return com.earth2me.essentials.api.Economy.createNPC(playerName);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user