Solved A very small question

Discussion in 'Plugin Development' started by Freelix2000, Jun 27, 2014.

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

    Freelix2000

    I was just wondering for a mini-game plugin I'm making, which event passes first, EntityDamageEvent or EntityDamageByEntityEvent? I was wondering this because I want to make EntityDamageEvent add objects to a list or define public variables that would be used in EntityDamageByEntityEvent to recognize a "damager" that has not technically damaged the entity.
     
  2. Offline

    iiHeroo

    Not sure which is, but why not just debug it by

    @EventHandler
    public void debugEntityDamage(EntityDamageEvent e) {
    System.out.println(System.currentTimeMillis());
    }

    @EventHandler
    public void debugEntityDamageByEntity(EntityDamageByEntityEvent e) {
    System.out.println(System.currentTimeMillis());
    }

    It's EntityDamageEvent as EntityDamageByEntityEvent extends EntityDamageEvent
     
    Freelix2000 likes this.
  3. Offline

    Plo124

    iiHeroo likes this.
  4. Offline

    Freelix2000

    iiHeroo
    That's what I thought, just wanted to be sure before creating a bunch of code then trying to figure out why it doesn't work later. Thanks. =)
     
  5. Offline

    iiHeroo


    Just look at the Java Docs next time! http://jd.bukkit.org/
     
Thread Status:
Not open for further replies.

Share This Page