added player account creation fix to EssEco

This commit is contained in:
Sleaker 2012-01-15 21:56:25 -08:00
parent 02c4e0b22c
commit a7c1b34232

View File

@ -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