Remove Arrow From Player

Discussion in 'Spigot Plugin Help' started by Technerder, Apr 18, 2017.

  1. looking for a plugin to remove arrow from players body automatically or with a command.
     
  2. p.getInventory().remove(Material.ARROW);
     
  3. Hm this thread gived me a idea, thx
     
  4. I think he is meaning how to remove the arrows that are graphically shown to stick to players when they have been shot.

    I've found this after simply googling for the same thing as the title of this thread:
    https://www.spigotmc.org/threads/removing-arrows.72723/#post-802718
     
  5. Thanks to all suggestions, however I need a plugin, I am not making one, also I meant I need a plugin that removes it from a players body not inventory.
     
  6. Try this
    ((CraftPlayer)player).getHandle().getDataWatcher().watch(9, (byte) 0);
     
  7. Thanks for trying to help, but I already linked him to this and he has just said he isn't making the plugin himself, so giving him code isn't going to be useful.
     
  8. Okay :( I didn't see the message