EntityDeathEvent not registering

Discussion in 'Plugin Development' started by shohouku, Aug 3, 2014.

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

    shohouku

    Any idea why?

    I'm using 1.7.10 Craftbukkit beta build.

    My events are registered and I have listeners.


    Code:java
    1. @EventHandler
    2. public void onEntityDeath (EntityDeathEvent event, Player p) {
    3. System.out.println("testing1");
    4. }
     
  2. Offline

    Necrodoom

    The listener method has no player in it.
     
  3. Nope, as Necrodoom says, there's no player in the event, it should look like this:

    Code:java
    1. @EventHandler
    2. public void onEntityDeath (EntityDeathEvent event) {
    3. System.out.println("testing1");
    4. }
     
Thread Status:
Not open for further replies.

Share This Page