Do something on player death: help

Discussion in 'Plugin Development' started by Choltfo, May 21, 2012.

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

    Choltfo

    Alright, so I cannot for the life of me figure this out.
    How do I get a portion of script ( e.g, println(Player.getName() + " died"); ) to run when a player dies? I have looked in quite a few places and found nothing that is exactly geared towards the lower end of the programming knowledge scale, where I currently reside. Any explanation whatsoever would be a large step , so thank you in advance.

    -Choltfo
     
  2. Offline

    Kanlaki101

  3. Offline

    Choltfo

    Thanks for the reply, but I am confused by this whole thing. I've looked at it, and had very littl success and understanding. Is there some function that get's called or something?
     
  4. Offline

    Kanlaki101

    The PlayerDeathEvent is the "function" (method in Java) that is called when a player dies..
     
  5. Offline

    Darq

  6. Offline

    Choltfo

  7. Offline

    gamerzap

    Yeah, you have to register the event.
     
  8. Offline

    Darq

    n-n-n-necro!
     
Thread Status:
Not open for further replies.

Share This Page