Could not pass event EntityDamageByEntityEvent

Discussion in 'Plugin Development' started by Antigrate, May 14, 2014.

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

    Antigrate

    Hi there, I'm having a trouble with my plugin. I get the error in title. Here's a log of from the server console: http://pastebin.com/RLa96GWK

    Here's the code I wrote for the plugin: http://pastebin.com/EjBq9zZe

    If anyone could give me some guidance for this I would really appreciate it, thanks very much.
     
  2. Offline

    Bailey Payne

    Your issues are:

    at com.icloud.justin.vitale.classes.assassin.AssassinVirulentPoison.onPlayerHit(AssassinVirulentPoison.java:47)

    So the AssassinVirulentPoison class at line 47

    and

    at com.icloud.justin.vitale.classes.warrior.WarriorDesecratingStrike.onPlayerHit(WarriorDesecratingStrike.java:41) ~[?:?]

    so the WarriorDesecratingStrike at line 41

    both seems to be the PlayerHit event, so seeing the other class may help us as well.
     
  3. Offline

    RainoBoy97

    You're casting before you have checked if theyre instanceof player.
     
Thread Status:
Not open for further replies.

Share This Page