Whats the event for the player killer?

Discussion in 'Plugin Development' started by gamelord327, Aug 25, 2013.

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

    gamelord327

    Hi, for my plugin i need to get the name of a killer killing another player. How would i do this?
     
  2. Offline

    Chinwe

    Listen to PlayerDeathEvent, check that event.getPlayer().getKiller() != null, and if it isn't you have your killer :)
     
  3. Offline

    gamelord327

    Could you maybe show me how to put this into my class file?
     
Thread Status:
Not open for further replies.

Share This Page