mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-12-24 16:58:50 +01:00
Check for road or unowned plot
This commit is contained in:
parent
fd4a5f2aaa
commit
a4c3fb26c7
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user