onNpcDeathEvent

The next update will be available between Monday, April 28 and Tuesday, April 29
  • Can't remember if this was asked before, but am I correct in believing this method doesn't work yet?


    Java
    @EventMethod
    public void onNpcDeathEvent(NpcDeathEvent event){
    System.out.println("An NPC has died!");
    Object killer = event.getKiller();
    if (killer == null) return;
    System.out.println(event.getCause());
    }

    The second system out method prints null to console.

Participate now!

Don’t have an account yet? Create a new account now and be part of our community!