From 7a529e156d67de3ac2cbbfa5f374f7929a0dab0b Mon Sep 17 00:00:00 2001 From: N0tMyFaultOG Date: Wed, 2 Sep 2020 17:03:56 +0200 Subject: [PATCH 1/2] Add deb for onBlockIgnite event --- .../bukkit/listener/BlockEventListener.java | 1 + Core/pom.xml | 16 ++++++++-------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/listener/BlockEventListener.java b/Bukkit/src/main/java/com/plotsquared/bukkit/listener/BlockEventListener.java index fcd5d6951..2c068e2e1 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/listener/BlockEventListener.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/listener/BlockEventListener.java @@ -1030,6 +1030,7 @@ public class BlockEventListener implements Listener { } } else if (!plot.getFlag(BlockIgnitionFlag.class)) { event.setCancelled(true); + plot.debug("Block ignition was cancelled because block-ignition = false"); } } else { if (plot == null) { diff --git a/Core/pom.xml b/Core/pom.xml index ad175038f..3d4ebf3a7 100644 --- a/Core/pom.xml +++ b/Core/pom.xml @@ -18,6 +18,12 @@ 1.18.12 runtime + + org.jetbrains + annotations + 20.1.0 + runtime + com.sk89q.worldedit worldedit-core @@ -71,7 +77,7 @@ org.yaml snakeyaml - 1.25 + 1.26 runtime @@ -83,13 +89,7 @@ org.jetbrains.kotlin kotlin-stdlib - 1.3.72 - runtime - - - org.jetbrains - annotations - 20.0.0 + 1.4.0 runtime From d19dde2f85c1ce24de5d7438c17d3dd94a34698b Mon Sep 17 00:00:00 2001 From: N0tMyFaultOG Date: Wed, 2 Sep 2020 17:18:41 +0200 Subject: [PATCH 2/2] Add more debugs --- .../java/com/plotsquared/bukkit/listener/BlockEventListener.java | 1 + 1 file changed, 1 insertion(+) diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/listener/BlockEventListener.java b/Bukkit/src/main/java/com/plotsquared/bukkit/listener/BlockEventListener.java index 2c068e2e1..bd0d61405 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/listener/BlockEventListener.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/listener/BlockEventListener.java @@ -530,6 +530,7 @@ public class BlockEventListener implements Listener { } if (!plot.getFlag(IceFormFlag.class)) { event.setCancelled(true); + plot.debug("Ice could not form because ice-form = false"); } }