Advertisement
Guest User

Untitled

a guest
Feb 9th, 2015
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.73 KB | None | 0 0
  1. for(Block block : radiusBlocks){
  2.  
  3.             if(canBreakTypes == null){
  4.                
  5.                 event.getBlock().setType(Material.AIR);
  6.                 block.setType(Material.AIR);
  7.                
  8.                 plugin.getCoreProtect().testAPI();
  9.                
  10.                 plugin.getCoreProtect().logRemoval(player.getName(),
  11.                                               block.getLocation(),
  12.                                               block.getTypeId(),
  13.                                               block.getData());
  14.                
  15.                 continue;
  16.             }
  17.  
  18.             if(canBreakTypes.contains(block.getType())){
  19.                
  20.                 event.getBlock().breakNaturally(itemInHand);
  21.                 block.breakNaturally(itemInHand);
  22.                
  23.                 plugin.getCoreProtect().testAPI();
  24.                
  25.                 plugin.getCoreProtect().logRemoval(player.getName(),
  26.                           block.getLocation(),
  27.                           block.getTypeId(),
  28.                           block.getData());
  29.             }
  30.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement