Solved Error when killing a player in EntityDamageByEntityEvent

Discussion in 'Spigot Plugin Development' started by MagKiller111, Apr 21, 2017.

Thread Status:
Not open for further replies.
  1. Hi, I have a error popping up in the console when i kill a player within EntityDamageByEntityEvent. The errors says nothing about nullpointer exception or anything. So this error confuses me a lot.

    Error: https://hastebin.com/ocarefeyek.vbs
    Code: https://hastebin.com/okuwarijih.cs
    I have added the lane number where the error appears. I hope anyone can help me with this.
     
  2. NathanWolf

    Supporter

    Code (Text):
    21.04 22:56:21 [Multicraft] Skipped 46 lines due to rate limit (30/s)
    Can you just run a local server to see what the actual error is? Multicraft is just terrible for debugging.
     
  3. NathanWolf

    Supporter

    Is this line 163?

    Code (Text):
    if (team.getMembers().contains(shooter)) {
    If so, seems like team is null- which I'm guessing makes sense if the player is not on a team.
     
  4. Every player has a team. I noticed that the last error message sent was not the correct error. I will genereate the correct error again tomorrow. so i can send the correct error.

    EDIT: Somehow it fixed it self. It works just fine now. Thread Closed.
     
    #5 MagKiller111, Apr 21, 2017
    Last edited: Apr 22, 2017
Thread Status:
Not open for further replies.