1.12.2 PlayerDeathEvent Error with victim

Discussion in 'Spigot Plugin Development' started by Koopin, Jun 28, 2021.

  1. I don't know what's going on with the rest of your code but try checking if the player even has a killer first - i.e. that
    Code (Java):
    killer != null
    Probably why you get the NullPointerException - cuz it's null
     
  2. thank u, error has been fixed