Set Damage Message

Discussion in 'Plugin Development' started by Sister, May 11, 2013.

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

    Sister

    Hi :3

    I have eggs that deal 3 hearts of damage to nearby players when thrown, but the problem is, when they die it just says Player died. I want to change it so the message says Player was killed by EggThrower'sName.

    Is this possible?
     
  2. Offline

    Tjstretchalot

    Which event are you using to detect death by egg?
     
  3. Offline

    Sister

    I'm not. That's what I'm trying to do. I'm trying to get the egg from the death event.
     
  4. Offline

    Billythekidzz

    On EntityDamageByEntityEvent > if event.getEntity's health is lower than 1 > event.getDamager > broadcast "event.getEntity() + "was killed by" + event.getDamager"
     
Thread Status:
Not open for further replies.

Share This Page