Events, TNT and damaged blocks

Discussion in 'Plugin Development' started by LucasEmanuel, May 28, 2012.

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

    LucasEmanuel

    Im making a way of restoring a world by simply logging each change. Breaking/Placing blocks and chests is finished, now i need a way of logging the TNTs and the blocks they destroy.

    Im guessing that i should log the EntityExplodeEvent and the BlockDamageEvent. Does someone have experience with something like this?
     
  2. Offline

    Nitnelave

    You can look at the CreeperHeal plugin I've done. The source is on http://github.com/nitnelave/CreeperHeal
    Basically I record the entityexplodeEvent's blocklist, and the inventory/data of chests/monster spawners, etc...
     
Thread Status:
Not open for further replies.

Share This Page