From 96740fd2820234e7f5c875fe273d511ce9a7b14f Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Thu, 9 Jul 2020 21:52:51 +0100 Subject: [PATCH] Couple of fixes to road flag logic --- .../java/com/plotsquared/bukkit/listener/PlayerEvents.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/listener/PlayerEvents.java b/Bukkit/src/main/java/com/plotsquared/bukkit/listener/PlayerEvents.java index ed812d09f..b088239ef 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/listener/PlayerEvents.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/listener/PlayerEvents.java @@ -1878,8 +1878,7 @@ public class PlayerEvents extends PlotListener implements Listener { return; } } - if (!plot.hasOwner() && !area.isRoadFlags() && !area - .getRoadFlag(MiscInteractFlag.class)) { + if (!plot.hasOwner()) { if (!Permissions.hasPermission(pp, "plots.admin.interact.unowned")) { MainUtil.sendMessage(pp, Captions.NO_PERMISSION_EVENT, "plots.admin.interact.unowned"); @@ -3145,7 +3144,7 @@ public class PlayerEvents extends PlotListener implements Listener { } Plot plot = location.getOwnedPlot(); if (plot == null) { - if (area.isRoadFlags() && area.getRoadFlag(ItemDropFlag.class)) { + if (area.isRoadFlags() && !area.getRoadFlag(ItemDropFlag.class)) { event.setCancelled(true); } return;