From 616b880e13fd07d880e934f394427df6fa2be5df Mon Sep 17 00:00:00 2001 From: snowleo Date: Sat, 16 Jul 2011 01:33:22 +0200 Subject: Heavy cleanup of all classes ItemDb is not static anymore Essentials.getStatic() removed --- .../src/com/earth2me/essentials/protect/EssentialsProtect.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'EssentialsProtect') 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 -- cgit v1.2.3