diff --git a/src/main/java/com/gamingmesh/jobs/listeners/JobsPaymentListener.java b/src/main/java/com/gamingmesh/jobs/listeners/JobsPaymentListener.java index 0c9f5ddc..522291ab 100644 --- a/src/main/java/com/gamingmesh/jobs/listeners/JobsPaymentListener.java +++ b/src/main/java/com/gamingmesh/jobs/listeners/JobsPaymentListener.java @@ -423,6 +423,10 @@ public class JobsPaymentListener implements Listener { @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true) public void onBlockPlace(BlockPlaceEvent event) { + // A tool should not trigger a BlockPlaceEvent (fixes stripping logs bug #940) + if (CMIMaterial.get(event.getItemInHand().getType()).isTool()) + return; + Block block = event.getBlock(); //disabling plugin in world