diff options
author | snowleo <schneeleo@gmail.com> | 2011-06-25 15:34:33 +0200 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-06-25 15:34:33 +0200 |
commit | 93f333d9070ce30fc8fb9f6a40d47d965dfbdd8a (patch) | |
tree | b1e1a490abed48cf48e99c51c31730b310e416e3 | |
parent | ad819ac38690ee5780f7b5fc4d61fd3ee7ae095d (diff) | |
download | Essentials-93f333d9070ce30fc8fb9f6a40d47d965dfbdd8a.tar Essentials-93f333d9070ce30fc8fb9f6a40d47d965dfbdd8a.tar.gz Essentials-93f333d9070ce30fc8fb9f6a40d47d965dfbdd8a.tar.lz Essentials-93f333d9070ce30fc8fb9f6a40d47d965dfbdd8a.tar.xz Essentials-93f333d9070ce30fc8fb9f6a40d47d965dfbdd8a.zip |
Remove the restriction of EssEcoApi to not use iConomy or BOSE
-rw-r--r-- | Essentials/src/com/earth2me/essentials/api/Economy.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Essentials/src/com/earth2me/essentials/api/Economy.java b/Essentials/src/com/earth2me/essentials/api/Economy.java index 768168a24..bf071b733 100644 --- a/Essentials/src/com/earth2me/essentials/api/Economy.java +++ b/Essentials/src/com/earth2me/essentials/api/Economy.java @@ -3,7 +3,6 @@ package com.earth2me.essentials.api; import com.earth2me.essentials.Essentials; import com.earth2me.essentials.EssentialsConf; import com.earth2me.essentials.User; -import com.earth2me.essentials.UserData; import com.earth2me.essentials.Util; import java.io.File; import java.util.logging.Level; @@ -79,8 +78,7 @@ public final class Economy if (user == null) { throw new UserDoesNotExistException(name); } - // Use UserData to avoid calls to iConomy and Register - return ((UserData)user).getMoney(); + return user.getMoney(); } /** @@ -100,8 +98,7 @@ public final class Economy { throw new NoLoanPermittedException(); } - // Use UserData to avoid calls to iConomy and Register - ((UserData)user).setMoney(balance); + user.setMoney(balance); } /** |