From a3ab1fed167f58627dae7633fedecf5b87117f52 Mon Sep 17 00:00:00 2001 From: Jascha Starke Date: Sun, 22 Sep 2013 13:32:35 +0200 Subject: [PATCH] additional debug-message --- .../minecraft/limitedcreative/limits/BlockListener.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/de/jaschastarke/minecraft/limitedcreative/limits/BlockListener.java b/src/main/java/de/jaschastarke/minecraft/limitedcreative/limits/BlockListener.java index 7e36869..77e4d74 100644 --- a/src/main/java/de/jaschastarke/minecraft/limitedcreative/limits/BlockListener.java +++ b/src/main/java/de/jaschastarke/minecraft/limitedcreative/limits/BlockListener.java @@ -59,6 +59,8 @@ public class BlockListener implements Listener { } @EventHandler public void onAttachedBlockBreak(AttachedBlockDestroyedByPlayerEvent event) { + if (mod.isDebug()) + mod.getLog().debug("Attached Block " + event.getBlock().getType() + " initial destroyed by player: " + event.getPlayer().getName() + " in GM " + event.getPlayer().getGameMode().toString()); if (event.getPlayer() != null && event.getPlayer().getGameMode() == GameMode.CREATIVE) { if (!checkPermission(event.getPlayer(), NoLimitPermissions.DROP)) { mod.getBlockSpawn().block(event.getBlock());