Add some debugging messages to the placing/breaking so we can see what

block are what, will be helpful for figuring out what to add to the
whitelist of placing/breaking.
This commit is contained in:
graywolf336 2014-01-20 12:10:12 -06:00
parent 43cee6311a
commit 28953682ae

View File

@ -17,6 +17,9 @@ public class BlockListener implements Listener {
@EventHandler(ignoreCancelled=true)
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
@ -35,6 +38,8 @@ public class BlockListener implements Listener {
@EventHandler(ignoreCancelled=true)
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