additional debug-message
This commit is contained in:
parent
d53929a1b9
commit
a3ab1fed16
1 changed files with 2 additions and 0 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue