onNpcDeathEvent

A new update is now available, introducing fishing, climbing gear, clothes and more!
Latest hotfix: 0.8.5.3 (2025-05-09)
  • 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!