Check for road or unowned plot

This commit is contained in:
dordsor21 2019-01-23 14:02:18 +00:00
parent fd4a5f2aaa
commit a4c3fb26c7

View File

@ -431,8 +431,9 @@ public final class BukkitMain extends JavaPlugin implements Listener, IPlotMain
case FIREBALL: case FIREBALL:
case DRAGON_FIREBALL: case DRAGON_FIREBALL:
case DROPPED_ITEM: case DROPPED_ITEM:
if (Settings.Enabled_Components.KILL_ROAD_ITEMS if (Settings.Enabled_Components.KILL_ROAD_ITEMS || plotArea
&& BukkitUtil.getPlot(entity.getLocation()) == null) { .getOwnedPlotAbs(
BukkitUtil.getLocation(entity.getLocation())) == null) {
entity.remove(); entity.remove();
} }
// dropped item // dropped item