diff options
author | snowleo <schneeleo@gmail.com> | 2011-07-16 01:33:22 +0200 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-07-16 01:33:22 +0200 |
commit | a38fe6acd4f5f6d7143c818653e9e02209f312db (patch) | |
tree | 7a993bdc1260364b8fad6a2d811fd608cb24c70c /EssentialsProtect/src/com/earth2me/essentials | |
parent | 25c9557c594a065308dbd6dd4835f83c5028c54d (diff) | |
download | Essentials-a38fe6acd4f5f6d7143c818653e9e02209f312db.tar Essentials-a38fe6acd4f5f6d7143c818653e9e02209f312db.tar.gz Essentials-a38fe6acd4f5f6d7143c818653e9e02209f312db.tar.lz Essentials-a38fe6acd4f5f6d7143c818653e9e02209f312db.tar.xz Essentials-a38fe6acd4f5f6d7143c818653e9e02209f312db.zip |
Heavy cleanup of all classes
ItemDb is not static anymore
Essentials.getStatic() removed
Diffstat (limited to 'EssentialsProtect/src/com/earth2me/essentials')
-rw-r--r-- | EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtect.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtect.java b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtect.java index a8f6a3530..18acd9be3 100644 --- a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtect.java +++ b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtect.java @@ -1,6 +1,5 @@ package com.earth2me.essentials.protect; -import com.earth2me.essentials.Essentials; import com.earth2me.essentials.IConf; import com.earth2me.essentials.IEssentials; import com.earth2me.essentials.User; @@ -34,8 +33,8 @@ public class EssentialsProtect extends JavaPlugin implements IConf, IProtect public void onEnable() { - ess = Essentials.getStatic(); final PluginManager pm = this.getServer().getPluginManager(); + ess = (IEssentials)pm.getPlugin("Essentials"); final EssentialsProtectPlayerListener playerListener = new EssentialsProtectPlayerListener(this); pm.registerEvent(Type.PLAYER_INTERACT, playerListener, Priority.Low, this); @@ -64,7 +63,7 @@ public class EssentialsProtect extends JavaPlugin implements IConf, IProtect { LOGGER.log(Level.WARNING, Util.i18n("versionMismatchAll")); } - LOGGER.info(Util.format("loadinfo", this.getDescription().getName(), this.getDescription().getVersion(), Essentials.AUTHORS)); + LOGGER.info(Util.format("loadinfo", this.getDescription().getName(), this.getDescription().getVersion(), "essentials team")); } @Override |