Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void onBlockBurn(BlockBurnEvent event) {
- plugin.log("onBlockBurn();");
- event.setCancelled(true);
- final BlockFace[] faces = {BlockFace.NORTH, BlockFace.EAST, BlockFace.SOUTH, BlockFace.WEST, BlockFace.UP, BlockFace.DOWN};
- for ( int i = 0; i < faces.length; i++ ) {
- final Block block = event.getBlock().getFace(faces[i]);
- if ( block.getTypeId() == 51 ) {
- block.setTypeId(0);
- }
- }
- }
Add Comment
Please, Sign In to add comment