mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2024-12-23 00:15:06 +00:00
Check for road or unowned plot
This commit is contained in:
parent
fd4a5f2aaa
commit
a4c3fb26c7
1 changed files with 3 additions and 2 deletions
|
@ -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 a new issue