No More Arrows To The Knee

Discussion in 'Archived: Plugin Requests' started by Imm0rt41, Jan 6, 2012.

  1. Offline

    Imm0rt41

    I used to manually slap all players who said they took an arrow to the knee, but then I thought of this plugin.

    So, we're all starting to get tired of that old arrow to the knee joke. So what I propose is a plugin that indeed, gives those players an arrow to the knee. Whenever anyone says the phrase "I took an arrow to the knee" or any similar phrase, they will get bombarded with arrows to the knees until they die.

    Now, I know what you're thinking, what if they're in godmode or creative? Well, one thing I have found is that you still have your health bar in either one, your just told not to take damage from things (at least I'm assuming that's how it works). So what this will do is if it registers you not having damage taken from the arrows, then it will take away however much damage the arrow would normally do on contact so that people get confused and scared.

    So yea, that's pretty much it. If anyone feels like taking up this plugin, add me in skype, my skype is the_basement_nerd.
     
  2. Offline

    ArcheCane

    lol, this would be funny.
    I would do this, but sadly I can't use eclipse currently as my laptop is getting fixed.
     
  3. Offline

    Imm0rt41

    Well, do you wanna do it when it gets fixed then?
     
  4. Offline

    naithantu

    I like the idea xD.
    I'll try it after dinner, already have a listener for this, only need to make a shower of arrows :p

    Well... I failed.
    Question:
    How do you stop a repeating task? xd

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 22, 2016
  5. Offline

    Wolfy9247

    A repeating task, such as one scheduled through Bukkit's scheduler or... ? Either way, this might be a question to be asked in the plugin development forum instead of the main request thread for it.
     
  6. Offline

    naithantu

    The one through the bukkit scheduler, just posted it here because I stopped making it last night and wanted to post that... :d
    I could probably figure it out myself, just need a bit more time for it since I slightly froze my laptop last night with a repeating task :p
     
  7. Offline

    Elusive92

    What do you need the task for? Simply fire an arrow onPlayerChat().
     
  8. Offline

    naithantu

    One arrow wont kill someone.
    And just making them die without actually making the arrow kill them isn't what I wanted.
    The only way to repeat something is a task, right?
     
  9. Offline

    Kostronor

    you could create a synchronous thread and then put it to sleep for x millis to have a delay between each shot
     
  10. Offline

    Lolmewn Retired Staff

    Stop a thread with
    Bukkit.getScheduler().cancelTask(taskID);
    You can get the task ID when scheduling it, instead of doing getScheduler.., do int ID = getScheduler..
     
  11. Offline

    Imm0rt41

    i just realized i forgot to watch this thread and so have been missing all the updates on it. so how is it going so far?
     
  12. Offline

    V10lator

    Never use sleep in minecrafts main thread. A sync task runs in minecrafts main thread, too!
     
  13. Offline

    Imm0rt41

    wait, so is someone making this plugin or has it just become a thread for discussing how to properly spam arrows on someone?
     
  14. Offline

    V10lator

    I think/hope @naithantu is developing it. He asked a question about tasks cause of it. ;)
     
  15. Offline

    Imm0rt41

    kewlios

    naithantu, doth this be true? cause this plugin needs to be out there

    EDIT: also, naithantu, can you add customizable phrases to trigger the arrow shower? because often one thing ive found is that plugin makers will forget that phrases can be said in other ways, and so i want people to be able to manually add the phrases so that the system cant be cheated
     
  16. Offline

    boardinggamer

    I can probably make this if he doesn't finish it before me
     
  17. Offline

    Imm0rt41

    if he doesnt reply in 3 days, then your up. also add me to skype so we can talk about it, i always ask people developing my ideas to do that but they never do :(. my skype is the_basement_nerd
     
  18. Offline

    Fyre

    When the onPlayerChatEvent occurs + if statements to specify the arrow to the knee related phrases, add them to an arraylist, register the onPlayerMoveEvent to shoot arrows in a player every time they move if they're on the arraylist. Then register the onEntityDamageEvent, and if a damaged entity is a player, that player is on said arraylist, and player.getHealth() <= event.getDamage(), remove them from the arraylist.

    Any questions? *Evil Grin*
     
  19. Offline

    Elusive92

    This, but i would go for PlayerDeathEvent instead of the damage event. It would probably not take longer than 30 minutes. Does someone (whoever is developing this at the moment) need help?
     
  20. Offline

    Fyre

    Either way would work, if the current dev needs any help I'd be happy to assist, as long as you credit me of course. :p
     
  21. Offline

    Imm0rt41

    Hey, also for whoever works on this, can I write the bukkit plugin description on it? i just wanna write it cause i wanna see if i can do a good description. and yes, i will obviously give you guys credit for being the developers
     
  22. Offline

    Fyre

    If the dev doesn't post here in two days, I'm making it myself, I'm tired of waiting.
    And sure Imm0rt41 you can make the description, one of the reasons I haven't released any of my plugins is because I'm too lazy to write the descriptions.

    EDIT: I might not actually wait that long.
     
  23. Offline

    KingWar92

    Send one arrow and just .kill him ?
     
  24. Offline

    Fyre

    That's no fun.
     
  25. Offline

    KingWar92

  26. Offline

    Fyre

    Why bother with the scheduler when you don't have to? You're making this more complicated than it needs to be.

    Immort41, I got bored and wrote it, and it's finished. PM me if you want it, I need a plugin name and a description and a bit more info on what features you want. I'll support it until all the bugs are fixed, maybe for longer if it's popular. I'll add you on skype.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 22, 2016
  27. Offline

    Imm0rt41

    lol, sweet thanks. my skype is the_basement_nerd
     
  28. Offline

    naithantu

    I... probably am. :(
    Any chance you could send me the plugin? Just to look at how you did it? :D
     
  29. Offline

    Fyre

    It's almost ready for release, you can wait till then. :p

    Someone throw me a good name for it? I'll credit you.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 22, 2016
  30. Offline

    Elusive92

    ArrowsToTheirKnees - penalty for arrow to the knee jokes
     

Share This Page