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 Ideas for commands: none Ideas for permissions: none When I'd like it by: ASAP Thanks! -JordyPwner
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.
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?
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.
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.
JordyPwner Does the cat sounds work? or no? and is there a error log when a person gets hit with an arrow?
mactown21 No errors no sound it act like a norbal bow mactown21 Got error: http://pastebin.com/fu8X7xh9 EDIT by Moderator: merged posts, please use the edit button instead of double posting.
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
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
mactown21 Code: event.getDamager()instanceof Arrow Code: final Player a = (Player)event.getDamager();
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