Removing arrows

Discussion in 'Plugin Development' started by Lazertx, Mar 2, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    Lazertx

    Does anyone know how to remove all arrows inside of a player when they die because I am currently developing a KitPvP server and one of the kits is a assassin and if they get hit my an arrow and re-spawn the arrow is still in them and everyone can see where they are
     
  2. Offline

    Lazertx

    Any ideas on how to fix this?
     
  3. Offline

    Technius

    I believe that's client side.
     
  4. Offline

    JayzaSapphire

    Try something like this in your respawn event

    Code:java
    1.  
    2. for (entity e : player.getNearbyEntites(2, 2, 2)) {
    3. if (e.getType() == EntityType.ARROW) {
    4. e.remove();
    5. }
    6. }
    7.  
     
Thread Status:
Not open for further replies.

Share This Page