From 534d627b0528a5610ac0f25c3b258db49554cb12 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Thu, 9 Nov 2017 10:18:52 +1100 Subject: [PATCH] Fixes #1732 --- .../com/plotsquared/bukkit/listeners/PlotPlusListener_1_12.java | 2 +- .../plotsquared/bukkit/listeners/PlotPlusListener_Legacy.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/PlotPlusListener_1_12.java b/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/PlotPlusListener_1_12.java index 5abf97af5..12cc6ab7e 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/PlotPlusListener_1_12.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/PlotPlusListener_1_12.java @@ -23,7 +23,7 @@ public class PlotPlusListener_1_12 implements Listener { return; } UUID uuid = pp.getUUID(); - if (plot.isAdded(uuid) && Flags.DROP_PROTECTION.isTrue(plot)) { + if (!plot.isAdded(uuid) && Flags.DROP_PROTECTION.isTrue(plot)) { event.setCancelled(true); } } diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/PlotPlusListener_Legacy.java b/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/PlotPlusListener_Legacy.java index 7f1f4977b..ce0c57f4e 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/PlotPlusListener_Legacy.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/PlotPlusListener_Legacy.java @@ -20,7 +20,7 @@ public class PlotPlusListener_Legacy implements Listener { return; } UUID uuid = pp.getUUID(); - if (plot.isAdded(uuid) && Flags.DROP_PROTECTION.isTrue(plot)) { + if (!plot.isAdded(uuid) && Flags.DROP_PROTECTION.isTrue(plot)) { event.setCancelled(true); } }