summaryrefslogtreecommitdiffstats
path: root/EssentialsSigns
diff options
context:
space:
mode:
authorIaccidentally <coryhuckaby@gmail.com>2013-05-02 20:24:20 -0700
committerIaccidentally <coryhuckaby@gmail.com>2013-05-02 20:24:20 -0700
commit59f91be43a92d2fe34448df1d58fabffd4776f24 (patch)
tree5563c3b842304fa73f0a0f4fdd812a5b1caf3a2d /EssentialsSigns
parentc16b09a9eaf6cf1f8c4b9e37f33f4e4295de9113 (diff)
parent3ff12f6bf52268b228aadbfbe634ca9ab0c135b6 (diff)
downloadEssentials-59f91be43a92d2fe34448df1d58fabffd4776f24.tar
Essentials-59f91be43a92d2fe34448df1d58fabffd4776f24.tar.gz
Essentials-59f91be43a92d2fe34448df1d58fabffd4776f24.tar.lz
Essentials-59f91be43a92d2fe34448df1d58fabffd4776f24.tar.xz
Essentials-59f91be43a92d2fe34448df1d58fabffd4776f24.zip
Merge pull request #470 from drtshock/master
More logging!
Diffstat (limited to 'EssentialsSigns')
-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;
}
}