onEntityDamage not overriding

Discussion in 'Plugin Development' started by SparrowMaxx, Feb 27, 2011.

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

    SparrowMaxx

    I've registered the event, here:
    pm.registerEvent(Event.Type.ENTITY_DAMAGED , playerListener, Priority.Normal, this);

    I've also grabbed the right bukkit imports, in PlayerListener.java:
    import org.bukkit.event.entity.EntityDamageEvent;
    import org.bukkit.event.entity.EntityListener;

    But when I put down this, also in PlayerListener.java:

    @Override
    public void onEntityDamage(EntityDamageEvent event) {
    }

    It says that I'm not overriding from a supertype.
    but I am. org.bukkit.event.entity.EntityListener has copy -> paste what my event has in it, according to the lukegb bukkit.

    What.
     
  2. Offline

    Edward Hand

    Is your bukkit up to date? If not, try updating it.
     
  3. Offline

    SparrowMaxx

    Yes, it has. I just recently downloaded 4## (420something?). And in either case that hasn't been changed in a while.
     
  4. Offline

    Edward Hand

    Actually they only recently added onEntityDamage
    Before that it was onEntityDamageByEntity, onEntityDamageByBlock etc
    (which I why I mentioned it)
     
Thread Status:
Not open for further replies.

Share This Page