mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-25 22:56:45 +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 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
|
||||
|
Loading…
Reference in New Issue
Block a user