Arrow through players

Discussion in 'Spigot Plugin Development' started by LazerShadow, Dec 13, 2015.

  1. How would I go about making an arrows go through a player? I could stop the arrow then put it on the other side of the player with the same speed and velocity, but that seems a little too complicated.
     
  2. entity.spigot().setCollidesWithEntities(false);
    You can use that then set it to true right after.

    You'll need the Spigot API to use that method.
     
  3. Code (Java):
    public void setCollidesWithEntities(boolean collides) {
                throw new UnsupportedOperationException("Not supported yet.");
            }
     
  4. The API says that. It says the same for the Unbreakable tag for ItemMeta. It still works.