Removing Arrows Off of Ground

Discussion in 'Spigot Plugin Development' started by Technerder, Apr 20, 2017.

  1. hello, this is my first time using NMS so sorry my code looks extremely br
    Code (Text):
    package technerder.kurion.noarrowonfloor;

    import org.bukkit.entity.Player;
    import org.bukkit.event.EventHandler;
    import org.bukkit.event.player.PlayerMoveEvent;

    public class Main extends JavaPlugin {

        public <CraftPlayer> void Remove(PlayerMoveEvent event) {
            Player player = event.getPlayer();

            ((CraftPlayer) player).getHandle().getDataWatcher().watch(9, (byte) 0);
    oken, i am trying to make a plugin that removes the arrow in a players body on move, and i looked around and i tried to use NMS, however it looks extremely broken any help?
  2. NathanWolf


    Please wait 24 hours to bump (and have a free bump from me, I guess...)

    You also may want to edit your title (er, if possible?) since you're really asking about removing arrows from entities, not from the ground.
  3. There was a thread about this like 3 days ago - look around my profile if you want to find it. It has atleast 2 solutions.