Requesting block break events
JoeSchmo2840 opened this issue ยท 4 comments
Hello I am wondering what type of events are being fired when block changing items such as digital miners edit the world or blocks. I am working to make a land protection plugin for the Sponge server. It is currently a forge implementation so if your firing forge events I can listen for them. If they are not, would you be willing to fire them? Or tell me if there is any way to check to see if the block is protected before items in your mod can modify them.
The digital miner should implement Forge's BlockEvent.BreakEvent. The implementation should go in here: https://github.com/aidancbrady/Mekanism/blob/master/src/main/java/mekanism/common/tile/TileEntityDigitalMiner.java#L359-L389. An example of such an implementation can be found here: https://github.com/BuildCraft/BuildCraft/blob/6.5.x/common/buildcraft/core/lib/utils/BlockMiner.java#L89-L115.
No thank you Aidan, this is a great step towards peace of mind on our servers. I will try to get a donation to you soon :)