From 27b26dbe073f2a5b4c9f3b21b8ad64e88e7942d8 Mon Sep 17 00:00:00 2001 From: boy0001 Date: Thu, 5 Feb 2015 20:28:01 +1100 Subject: [PATCH] Should fix arrow --- .../com/intellectualcrafters/plot/listeners/PlayerEvents.java | 4 ++++ 1 file changed, 4 insertions(+) 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); + } } }