From a7c1b3423287c7d1dc7af0f2214280b7fd85e82e Mon Sep 17 00:00:00 2001 From: Sleaker Date: Sun, 15 Jan 2012 21:56:25 -0800 Subject: [PATCH] added player account creation fix to EssEco --- .../vault/economy/plugins/Economy_Essentials.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/net/milkbowl/vault/economy/plugins/Economy_Essentials.java b/src/net/milkbowl/vault/economy/plugins/Economy_Essentials.java index a2657a7..593cda0 100644 --- a/src/net/milkbowl/vault/economy/plugins/Economy_Essentials.java +++ b/src/net/milkbowl/vault/economy/plugins/Economy_Essentials.java @@ -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