From 39ed29893d4d84a0674399eb653fd96ec42ea921 Mon Sep 17 00:00:00 2001 From: iykHvfIvfR Date: Fri, 7 Jul 2017 04:06:25 +0000 Subject: [PATCH] Fix ghost entry snitches --- .../JukeAlert/listener/JukeAlertListener.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/untamedears/JukeAlert/listener/JukeAlertListener.java b/src/main/java/com/untamedears/JukeAlert/listener/JukeAlertListener.java index c93072d9..1c268f3d 100644 --- a/src/main/java/com/untamedears/JukeAlert/listener/JukeAlertListener.java +++ b/src/main/java/com/untamedears/JukeAlert/listener/JukeAlertListener.java @@ -392,9 +392,6 @@ public void breakSnitchBlock(BlockBreakEvent event) { + " and is on group: " + snitch.getGroup().getName()); } } - if (!block.getType().equals(Material.JUKEBOX)) { - return; - } if (vanishNoPacket.isPlayerInvisible(event.getPlayer()) || event.getPlayer().hasPermission("jukealert.vanish")) { return; @@ -402,10 +399,8 @@ public void breakSnitchBlock(BlockBreakEvent event) { Location loc = block.getLocation(); if (snitchManager.getSnitch(loc.getWorld(), loc) != null) { Snitch snitch = snitchManager.getSnitch(loc.getWorld(), loc); - if (snitch.shouldLog()) { - plugin.getJaLogger().logSnitchBreak(loc.getWorld().getName(), loc.getBlockX(), loc.getBlockY(), - loc.getBlockZ()); - } + plugin.getJaLogger().logSnitchBreak(loc.getWorld().getName(), loc.getBlockX(), loc.getBlockY(), + loc.getBlockZ()); snitchManager.removeSnitch(snitch); } }