diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/listeners/PlayerEvents.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/listeners/PlayerEvents.java index b0b511452..ca325714e 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/listeners/PlayerEvents.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/listeners/PlayerEvents.java @@ -37,6 +37,7 @@ import org.bukkit.block.Block; import org.bukkit.block.BlockFace; import org.bukkit.block.BlockState; import org.bukkit.entity.Animals; +import org.bukkit.entity.Arrow; import org.bukkit.entity.Entity; import org.bukkit.entity.ItemFrame; import org.bukkit.entity.Monster; @@ -926,6 +927,9 @@ public class PlayerEvents extends com.intellectualcrafters.plot.listeners.PlotLi } } } + else if (d instanceof Arrow && isPlotArea(l)) { + e.setCancelled(true); + } } }