How to get the killer of an entity?

Discussion in 'Plugin Development' started by keelar, Sep 16, 2012.

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

    keelar

    How would you go about getting the killer of an animal or monster? For players you can use getKiller() but non-player entities don't have that method. Any help would be appreciated.
     
  2. Offline

    Taco

    EntityDamageByEntityEvent
     
  3. Offline

    keelar

    I know that, I was having a problem with something else but I figured it out. Thanks anyway.

    I had:
    Code:
    Entity entity = e.getEntity();
    And that was getting rid of the getKiller() method. My mistake.
     
Thread Status:
Not open for further replies.

Share This Page