Guest User

Untitled

a guest
Jan 21st, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. @Override
  2. public void onBlockBurn(BlockBurnEvent event) {
  3. plugin.log("onBlockBurn();");
  4. event.setCancelled(true);
  5. final BlockFace[] faces = {BlockFace.NORTH, BlockFace.EAST, BlockFace.SOUTH, BlockFace.WEST, BlockFace.UP, BlockFace.DOWN};
  6. for ( int i = 0; i < faces.length; i++ ) {
  7. final Block block = event.getBlock().getFace(faces[i]);
  8. if ( block.getTypeId() == 51 ) {
  9. block.setTypeId(0);
  10. }
  11. }
  12. }
Add Comment
Please, Sign In to add comment