Player Popper

Discussion in 'Archived: Plugin Requests' started by JordyPwner, May 26, 2014.

  1. Offline

    JordyPwner

    Hi there! Before I get into this, just wanted to say I am NOT asking for a huge plugin.
    Plugin category: Fun

    Suggested name: PlayerPopper

    What I want: I want when you shoot with a bow the player you hit with the arrow will turn invisible for a amount of seconds. (the player that you hit will turn invisible for you not him)
    when you hit someone a Cat sound will play:D

    Ideas for commands: none

    Ideas for permissions: none

    When I'd like it by: ASAP
    Thanks!
    -JordyPwner
     
  2. Offline

    JordyPwner

  3. Offline

    JordyPwner

  4. Offline

    mactown21

    I can make this for you today. When do you need it? Because im able to do it in a couple of hours maybe 4 or 3 hours.
     
  5. Offline

    JordyPwner

  6. Offline

    mactown21

    JordyPwner Can you wait atleast 3 or 4 hours?

    @JordyPwner And 2 questions.. How many seconds for the effect when arrow hits player, and does the cat sound plays both players, or just the person who hits another?

    And after a player has been hit, should all the players on join be reset to unhidden? or stay hidden?
     
  7. Offline

    JordyPwner

    mactown21

    1) it takes 10seconds to see him again

    2) only for him

    3) unhidden
    mactown21
     
  8. Offline

    mactown21

    JordyPwner Ok i will make it in a couple of hours, maybe in 1 or 2 hours..
     
  9. Offline

    JordyPwner

    mactown21 ok keep me informed when ur done :p
     
  10. Offline

    mactown21

    JordyPwner Is these items given on join?, How many arrows?
     
  11. Offline

    JordyPwner

    mactown21 they are given on join and the bow got infinity 1 so it only needs 1 arrow
     
  12. Offline

    mactown21

  13. Offline

    JordyPwner

  14. Offline

    mactown21

  15. Offline

    JordyPwner

  16. Offline

    mactown21

    JordyPwner Just to clear more things up, should items be removed or kept on join?
     
  17. Offline

    JordyPwner

    mactown21 its in my lobby so i thing kept on join
     
  18. Offline

    mactown21

    JordyPwner Any other more things you would like to add extra?
     
  19. Offline

    JordyPwner

  20. Offline

    mactown21

    JordyPwner Done... <Edit by Moderator: Redacted mediafire url>

    I havnt tested it, so test it. If you have any errors please tahg me! with the error log

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Nov 2, 2016
  21. Offline

    JordyPwner

    mactown21 I will!

    mactown21 Nothing is working if i hit a player he wont turn invisible
    No config or folder is getting created and i got a startup error: http://pastebin.com/nM8q1PmF

    mactown21 Its still not working when i shoot someone he isnt turning invisible

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Aug 7, 2020
  22. Offline

    mactown21

    JordyPwner Does the cat sounds work? or no? and is there a error log when a person gets hit with an arrow?
     
  23. Offline

    JordyPwner

    Last edited by a moderator: Jun 8, 2016
  24. Offline

    mactown21

    JordyPwner And again, Download - <Edit by Moderator: Redacted mediafire url>

    I wish i was able to test it before i upload but im not able to, so sorry for having to go through all of this
     
    Last edited by a moderator: Nov 2, 2016
  25. Offline

    JordyPwner

    mactown21 Cant test it now cause i have to sleep
     
  26. Offline

    MAIN20000

    mactown21 want a server to test stuff on
     
  27. Offline

    mactown21

    Hopefully this one work, this file includes the plugin & soruce, make sure you take the plugin out.
    Download - <Edit by Moderator: Redacted mediafire url>

    timtower can you take a look over that and see whats the issue? i have no clue what the issue is, but im not able to test it. thanks
     
    Last edited by a moderator: Nov 2, 2016
  28. Online

    timtower Administrator Administrator Moderator

    mactown21
    Code:
    event.getDamager()instanceof Arrow
    Code:
    final Player a = (Player)event.getDamager();
     
  29. Offline

    mactown21

    timtower but that seems correct to me. Whats the fix?
     
  30. Online

    timtower Administrator Administrator Moderator

    Don't try to cast a Projectile to a Player, try to get the shooter instead, check if it was a player, then get that one
     

Share This Page