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 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