Do something on player death: help

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

  1. Offline

    Choltfo

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  3. Offline

    Choltfo

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    The PlayerDeathEvent is the "function" (method in Java) that is called when a player dies..
  5. Offline

    Darq

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  6. Offline

    Choltfo

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  7. Offline

    gamerzap

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Yeah, you have to register the event.
  8. Offline

    Darq

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    n-n-n-necro!

Share This Page