EntityDamageEvent - EnderDragon

Discussion in 'Plugin Development' started by Ribesg, Feb 13, 2012.

Thread Status:
Not open for further replies.
  1. Hi
    I want to save who did how much damages to the ED.

    But just this code does not work :
    Code:java
    1. @EventHandler(priority = EventPriority.NORMAL)
    2. public void onPlayerHitED(EntityDamageEvent event) {
    3. if (event.getEntity() instanceof EnderDragon)
    4. System.out.println("DEBUG onPlayerHitED 1");
    5. }

    Any idea ?
     
  2. Offline

    Windwaker

    Did you register the listener?
    Code:java
    1. Bukkit.getPluginManager().registerEvents(listener, plugin);
     
  3. Of course ! :D
    I would like somebody to test it and check if it works for him, then I'll try to check AGAIN my code. Thanks !
     
Thread Status:
Not open for further replies.

Share This Page