Plugin that stops arrows from sticking into players

Discussion in 'Plugin Requests' started by brinaq, Jan 27, 2016.

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

    brinaq

    When an arrow hits an animal, the arrow disappears, but when an arrow hits a player, it stays stuck into the player, turning players into pincushions covered in arrows.
    If it's possible and somebody would be willing to make it, I would like a plugin that removes the arrows from the player so that humans behave like animals when they get hit; nothing sticks into them.
    Thanks.
     
  2. Offline

    Eelek

    I don't know if you can 'kill' arrows that are in a player. I shall do a test and see. If it works, I shall send you the plugin.

    Edit: For what version of bukkit do you want the plugin?
     
  3. Online

    timtower Administrator Administrator Moderator

    Did some digging and there are ways with NMS.
     
  4. Offline

    brinaq

    1.8.9 if possible. Thanks :)
     
  5. Offline

    Eelek

    Sorry I haven't replied in such a long time. I could not code because Eclipse broke, but got it working again.

    Have a really wierd thing now, I made a command that kills the arrows, that works fine. But the event thats supposted to do it instant doesn't work.

    I think I just forgot a little line of code, but we'll see.

    Hope to have the plugin finished soon.


    (Sorry for bad English...)



    EDIT: Got it working. Had no idea what the bug was, but changed the EntityDamagedByEntityEvent to EntityDamageEvent and... it worked!

    I shall put a dropbox download link up: https://www.dropbox.com/s/cwy6n4vqv06lvtw/ArrowKiller.jar?dl=0
    but if you prefer something else, you can allways ask!

    Commands:
    - /killarrow <player>
    (or use /ka, /killa, /karrow for short use.)

    Permissions:
    - None.

    I think I'm doing it now with CraftBukkit 1.8.8, think that also works with 1.8.9. (Works on my server)
     
    Last edited: Feb 16, 2016
  6. Offline

    brinaq

    @Eelek
    Hi, thank you for putting the time into making the plugin! Testing it now!

    EDIT: When I tested it on my server, it seems like it made all arrows bounce off of players completely. Strange, maybe it's a plugin incompatibility?
     
  7. Offline

    Eelek

    Yea, had the same thing, with the arrows bouncing off. The command just "kills" them.
    What I think is happening is that the "instant kill" method is too instand, wich means it just lets the arrow bounce off.
    If you don't like the result, please let me know.

    Also, I found out I left a little line of code in there that takes away the damage that the arrow does. If you want that removed, also please let me know.
     
  8. Offline

    brinaq

    @Eelek That would be great if you could change both of those things. Basically what I was thinking for the plugin was for arrows to behave for players the same as they do with monsters; they damage the player, but the arrow doesn't stick into the player's body at all upon impact.

    Thanks!
     
  9. Offline

    Eelek

    Last edited: Feb 27, 2016
Thread Status:
Not open for further replies.

Share This Page