summaryrefslogtreecommitdiffstats
path: root/EssentialsProtect/src/net/ess3
diff options
context:
space:
mode:
Diffstat (limited to 'EssentialsProtect/src/net/ess3')
-rw-r--r--EssentialsProtect/src/net/ess3/protect/EssentialsConnect.java3
-rw-r--r--EssentialsProtect/src/net/ess3/protect/EssentialsProtect.java3
2 files changed, 2 insertions, 4 deletions
diff --git a/EssentialsProtect/src/net/ess3/protect/EssentialsConnect.java b/EssentialsProtect/src/net/ess3/protect/EssentialsConnect.java
index 8002a469e..6d1a1c333 100644
--- a/EssentialsProtect/src/net/ess3/protect/EssentialsConnect.java
+++ b/EssentialsProtect/src/net/ess3/protect/EssentialsConnect.java
@@ -10,7 +10,6 @@ import org.bukkit.plugin.Plugin;
public class EssentialsConnect
{
- private static final Logger LOGGER = Logger.getLogger("Minecraft");
private final IEssentials ess;
private final IProtect protect;
@@ -18,7 +17,7 @@ public class EssentialsConnect
{
if (!essProtect.getDescription().getVersion().equals(essPlugin.getDescription().getVersion()))
{
- LOGGER.log(Level.WARNING, _("§4Version mismatch! Please update all Essentials jars to the same version."));
+ essPlugin.getLogger().log(Level.WARNING, _("§4Version mismatch! Please update all Essentials jars to the same version."));
}
ess = ((BukkitPlugin)essPlugin).getEssentials();
protect = (IProtect)essProtect;
diff --git a/EssentialsProtect/src/net/ess3/protect/EssentialsProtect.java b/EssentialsProtect/src/net/ess3/protect/EssentialsProtect.java
index 2bb765b50..8b9fc7656 100644
--- a/EssentialsProtect/src/net/ess3/protect/EssentialsProtect.java
+++ b/EssentialsProtect/src/net/ess3/protect/EssentialsProtect.java
@@ -10,7 +10,6 @@ import org.bukkit.plugin.java.JavaPlugin;
public class EssentialsProtect extends JavaPlugin implements IProtect
{
- private static final Logger LOGGER = Logger.getLogger("Minecraft");
private EssentialsConnect ess = null;
private ProtectHolder settings = null;
@@ -45,7 +44,7 @@ public class EssentialsProtect extends JavaPlugin implements IProtect
{
player.sendMessage("Essentials Protect is in emergency mode. Check your log for errors."); //TODO: tl this
}
- LOGGER.log(Level.SEVERE, "Essentials not installed or failed to load. Essentials Protect is in emergency mode now."); //TODO: tl this
+ getLogger().log(Level.SEVERE, "Essentials not installed or failed to load. Essentials Protect is in emergency mode now."); //TODO: tl this
}
@Override