Solved PlayerDeathEvent only for deaths by players

Discussion in 'Plugin Development' started by TopTobster5, Mar 2, 2014.

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

    TopTobster5

    Hi. How do I work out if a player died from another player using the PlayerDeathEvent listener? Thanks.
     
  2. TopTobster5
    Get the player who died, then use the getKiller() method in Player class. Check if the killer is not null and is an instance of Player.
     
    TopTobster5 likes this.
  3. Offline

    TopTobster5

Thread Status:
Not open for further replies.

Share This Page