Hey, so i managed to get everything working with some chances of your code, and i finnaly started to look into developing plugins/mods.
But i direcly found 1 problem. The BlockbreakEven from bukkit never gets called with these custom items (obviously)
And your method:
public void BlockDestroyEvent(keepcalm.mods.events.events.BlockDestroyEvent e){
Bukkit.getServer().getLogger().log(Level.SEVERE, "BlockID: " + e.blockId);
}
Never gets called.
To be honest, I have NO idea how to use your event
But bukkit does not give me an error on illegal event, so id take it as working
Could you by any chance give me some advice/psuedo code before you leave? <3
Thanks in advance, and keep up the good work!
That event is called when non-players (block breakers, etc) break blocks. PlayerBreakBlockEvent is called when a player breaks a block.
Also, those events are for forge mods. Not bukkit