From 96cb530addb1ef9665c105d5c57ceceb4cd77348 Mon Sep 17 00:00:00 2001 From: graywolf336 Date: Tue, 19 Aug 2014 12:18:25 -0500 Subject: [PATCH] No need to send block break and place events to everyone, that's spammy. --- .../java/com/graywolf336/jail/listeners/BlockListener.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/main/java/com/graywolf336/jail/listeners/BlockListener.java b/src/main/java/com/graywolf336/jail/listeners/BlockListener.java index 1a5429b..3012c63 100644 --- a/src/main/java/com/graywolf336/jail/listeners/BlockListener.java +++ b/src/main/java/com/graywolf336/jail/listeners/BlockListener.java @@ -18,9 +18,6 @@ public class BlockListener implements Listener { @EventHandler(ignoreCancelled=true, priority = EventPriority.HIGHEST) public void blockBreak(BlockBreakEvent event) { - //If we're in debugging mode, let's send the player what block they're breaking. - if(pl.inDebug()) event.getPlayer().sendMessage("[Jail Debug]: " + event.getBlock().getType().toString()); - //If we are protecting against block breaking, then let's do the action. //If we're not, let's not use any processing power to get the jail //where this block was broke at @@ -39,9 +36,6 @@ public class BlockListener implements Listener { @EventHandler(ignoreCancelled=true, priority = EventPriority.HIGHEST) public void blockPlace(BlockPlaceEvent event) { - //If we're in debugging mode, let's send the player what block they're placing. - if(pl.inDebug()) event.getPlayer().sendMessage("[Jail Debug]: " + event.getBlock().getType().toString()); - //If we are protecting against block placing, then let's do the action. //If we're not, let's not use any processing power to get the jail //where this block was placed at