Event for Unspawning of Creature

Discussion in 'Plugin Development' started by jtripled, Aug 27, 2011.

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

    jtripled

    The CreatureSpawnEvent class does not appear to have a counterpart. Does anybody know how to track the despawning of a creature? I understand that you could do an EntityDeathEvent check, but that would not account for the despawning of a creature due to the chunk it is in being unloaded.

    Thanks,
    jtripled
     
  2. Offline

    nisovin

    You could watch the ChunkUnload event and just get all the entities in that chunk.
     
Thread Status:
Not open for further replies.

Share This Page