From a4c3fb26c79f5f3e8fe35e47e8247877beb8a93b Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Wed, 23 Jan 2019 14:02:18 +0000 Subject: [PATCH] Check for road or unowned plot --- .../intellectualsites/plotsquared/bukkit/BukkitMain.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/BukkitMain.java b/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/BukkitMain.java index e2eb005c2..a2e6a6cb9 100644 --- a/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/BukkitMain.java +++ b/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/BukkitMain.java @@ -431,8 +431,9 @@ public final class BukkitMain extends JavaPlugin implements Listener, IPlotMain case FIREBALL: case DRAGON_FIREBALL: case DROPPED_ITEM: - if (Settings.Enabled_Components.KILL_ROAD_ITEMS - && BukkitUtil.getPlot(entity.getLocation()) == null) { + if (Settings.Enabled_Components.KILL_ROAD_ITEMS || plotArea + .getOwnedPlotAbs( + BukkitUtil.getLocation(entity.getLocation())) == null) { entity.remove(); } // dropped item