summaryrefslogtreecommitdiffstats
path: root/EssentialsSigns/src/net/ess3
diff options
context:
space:
mode:
Diffstat (limited to 'EssentialsSigns/src/net/ess3')
-rw-r--r--EssentialsSigns/src/net/ess3/signs/EssentialsSignsPlugin.java3
-rw-r--r--EssentialsSigns/src/net/ess3/signs/listeners/SignBlockListener.java5
2 files changed, 3 insertions, 5 deletions
diff --git a/EssentialsSigns/src/net/ess3/signs/EssentialsSignsPlugin.java b/EssentialsSigns/src/net/ess3/signs/EssentialsSignsPlugin.java
index 1143aa022..7d5e80cf9 100644
--- a/EssentialsSigns/src/net/ess3/signs/EssentialsSignsPlugin.java
+++ b/EssentialsSigns/src/net/ess3/signs/EssentialsSignsPlugin.java
@@ -15,7 +15,6 @@ import org.bukkit.plugin.java.JavaPlugin;
public class EssentialsSignsPlugin extends JavaPlugin implements ISignsPlugin
{
- private static final Logger LOGGER = Bukkit.getLogger();
private SignsConfigHolder config;
@Override
@@ -26,7 +25,7 @@ public class EssentialsSignsPlugin extends JavaPlugin implements ISignsPlugin
final IEssentials ess = (IEssentials)plugin.getEssentials();
if (!this.getDescription().getVersion().equals(plugin.getDescription().getVersion()))
{
- LOGGER.log(Level.WARNING, _("§4Version mismatch! Please update all Essentials jars to the same version."));
+ getLogger().log(Level.WARNING, _("§4Version mismatch! Please update all Essentials jars to the same version."));
}
if (!plugin.isEnabled())
{
diff --git a/EssentialsSigns/src/net/ess3/signs/listeners/SignBlockListener.java b/EssentialsSigns/src/net/ess3/signs/listeners/SignBlockListener.java
index 69ca1b4c2..9c0b853cc 100644
--- a/EssentialsSigns/src/net/ess3/signs/listeners/SignBlockListener.java
+++ b/EssentialsSigns/src/net/ess3/signs/listeners/SignBlockListener.java
@@ -23,7 +23,6 @@ public class SignBlockListener implements Listener
{
private final IEssentials ess;
private final ISignsPlugin plugin;
- private final static Logger LOGGER = Logger.getLogger("Minecraft");
private final static int WALL_SIGN = Material.WALL_SIGN.getId();
private final static int SIGN_POST = Material.SIGN_POST.getId();
@@ -52,7 +51,7 @@ public class SignBlockListener implements Listener
// prevent any signs be broken by destroying the block they are attached to
if (EssentialsSign.checkIfBlockBreaksSigns(block))
{
- LOGGER.log(Level.INFO, "Prevented that a block was broken next to a sign.");
+ ess.getLogger().log(Level.INFO, "Prevented that a block was broken next to a sign.");
return true;
}
@@ -73,7 +72,7 @@ public class SignBlockListener implements Listener
{
if (sign.getBlocks().contains(block.getType()) && !sign.onBlockBreak(block, player, ess))
{
- LOGGER.log(Level.INFO, "A block was protected by a sign.");
+ ess.getLogger().log(Level.INFO, "A block was protected by a sign.");
return true;
}
}