Get Player Death Message

Discussion in 'Plugin Development' started by randomman159, Nov 17, 2011.

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

    randomman159

    So when a player dies, bukkit shows a message saying something like "<Player> was slain by a Spider".


    Is there any way i can get access to this message?
     
  2. Offline

    undeadmach1ne

  3. Offline

    randomman159

    pm.registerEvent(<what goes here?>, playerListener,
    Priority.Normal, this);

    I can't seem to find the event type...
     
  4. Offline

    iffa

    PLAYER_DEATH
     
  5. Offline

    randomman159

    it doesn't seem to have that... Oh well i just checked if EntityDeathEvent had the entity as a player, and then i cast the event to PlayerDeathEvent.
     
  6. Offline

    nisovin

    This is exactly what you should do.
     
  7. Offline

    randomman159

    sweet :)
     
Thread Status:
Not open for further replies.

Share This Page