Should fix arrow

This commit is contained in:
boy0001 2015-02-05 20:28:01 +11:00
parent 94de00f278
commit 27b26dbe07

View File

@ -37,6 +37,7 @@ import org.bukkit.block.Block;
import org.bukkit.block.BlockFace; import org.bukkit.block.BlockFace;
import org.bukkit.block.BlockState; import org.bukkit.block.BlockState;
import org.bukkit.entity.Animals; import org.bukkit.entity.Animals;
import org.bukkit.entity.Arrow;
import org.bukkit.entity.Entity; import org.bukkit.entity.Entity;
import org.bukkit.entity.ItemFrame; import org.bukkit.entity.ItemFrame;
import org.bukkit.entity.Monster; 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);
}
} }
} }