Permalink
Browse files

Move Economy API, MoneyHolder and WorthHolder to Economy package

  • Loading branch information...
1 parent d0d7128 commit 30c7a3af168357e9631a2309ad5487d6c40be5ec @snowleo snowleo committed Mar 14, 2012
@@ -17,6 +17,8 @@
*/
package com.earth2me.essentials;
+import com.earth2me.essentials.economy.WorthHolder;
+import com.earth2me.essentials.economy.Economy;
import com.earth2me.essentials.backup.Backup;
import static com.earth2me.essentials.I18n._;
import com.earth2me.essentials.api.*;
@@ -162,7 +164,7 @@ public void onEnable()
warps = new Warps(this);
reloadList.add(warps);
execTimer.mark("Init(Spawn/Warp)");
- worth = new Worth(this);
+ worth = new WorthHolder(this);
reloadList.add(worth);
itemDb = new ItemDb(this);
reloadList.add(itemDb);
@@ -1,9 +1,8 @@
-package com.earth2me.essentials;
+package com.earth2me.essentials.economy;
import com.earth2me.essentials.utils.Util;
import com.earth2me.essentials.api.*;
import com.earth2me.essentials.permissions.Permissions;
-import com.earth2me.essentials.settings.MoneyHolder;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
@@ -1,4 +1,4 @@
-package com.earth2me.essentials.settings;
+package com.earth2me.essentials.economy;
import com.earth2me.essentials.storage.MapValueType;
import com.earth2me.essentials.storage.StorageObject;
@@ -1,4 +1,4 @@
-package com.earth2me.essentials.settings;
+package com.earth2me.essentials.economy;
import com.earth2me.essentials.api.IEssentials;
import com.earth2me.essentials.storage.AsyncStorageObjectHolder;
@@ -1,4 +1,4 @@
-package com.earth2me.essentials.settings;
+package com.earth2me.essentials.economy;
import com.earth2me.essentials.storage.EnchantmentLevel;
import com.earth2me.essentials.storage.MapKeyType;
@@ -1,4 +1,4 @@
-package com.earth2me.essentials;
+package com.earth2me.essentials.economy;
import com.earth2me.essentials.api.IEssentials;
import com.earth2me.essentials.api.IWorth;
@@ -13,11 +13,11 @@
import org.bukkit.material.MaterialData;
-public class Worth extends AsyncStorageObjectHolder<com.earth2me.essentials.settings.Worth> implements IWorth
+public class WorthHolder extends AsyncStorageObjectHolder<com.earth2me.essentials.economy.Worth> implements IWorth
{
- public Worth(final IEssentials ess)
+ public WorthHolder(final IEssentials ess)
{
- super(ess, com.earth2me.essentials.settings.Worth.class);
+ super(ess, com.earth2me.essentials.economy.Worth.class);
onReload(false);
}
@@ -1,5 +1,6 @@
package com.earth2me.essentials.settings;
+import com.earth2me.essentials.economy.Worth;
import com.earth2me.essentials.storage.Comment;
import com.earth2me.essentials.storage.MapValueType;
import com.earth2me.essentials.storage.StorageObject;
@@ -1,5 +1,6 @@
package com.earth2me.essentials;
+import com.earth2me.essentials.economy.WorthHolder;
import com.earth2me.essentials.storage.ManagedFile;
import static com.earth2me.essentials.I18n._;
import com.earth2me.essentials.api.IEssentials;
@@ -52,7 +53,7 @@ private void moveWorthValuesToWorthYml()
}
final EssentialsConf conf = new EssentialsConf(configFile);
conf.load();
- final Worth worth = new Worth(ess);
+ final WorthHolder worth = new WorthHolder(ess);
boolean found = false;
for (Material mat : Material.values())
{

0 comments on commit 30c7a3a

Please sign in to comment.