Hi, I've some questions about the Events in Bukkit and I would be happy if you could help me 1) Is it possible to create multiple Methods for the same Event ? Like: Code:java @EventHandlerpublic void onGeneralBreak(BlockBreakEvent event){ //Do something} @EventHandlerpublic void onSignBreak(BlockBreakEvent event){ if(event.getBlock().getType() == Material.WALL_SIGN ) { //Do something else }} 2) Is there some sort of "BlockChange" Event, wchich is always called when a block change it's ID ? I could only find Place and Break Events. But that wouldn't include a Id cange done by WorldEdit, is it ? Thanks in advance, ~Oneric
1) If its just a sign which breaks, just use an if statement to find out if it is that type which is broken. 2) I don't think so, but I'm not 100% sure.
Of course I could just include an if statement, but if it's plenty of code one can better organise it through splitting it up in two or more methods.
Oneric-1st I don't see why it won't work, but my guess would be there may be a couple of bugs where the 2 events would both run. You would be better off using if statements in my opinion.