Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(Block block : radiusBlocks){
- if(canBreakTypes == null){
- event.getBlock().setType(Material.AIR);
- block.setType(Material.AIR);
- plugin.getCoreProtect().testAPI();
- plugin.getCoreProtect().logRemoval(player.getName(),
- block.getLocation(),
- block.getTypeId(),
- block.getData());
- continue;
- }
- if(canBreakTypes.contains(block.getType())){
- event.getBlock().breakNaturally(itemInHand);
- block.breakNaturally(itemInHand);
- plugin.getCoreProtect().testAPI();
- plugin.getCoreProtect().logRemoval(player.getName(),
- block.getLocation(),
- block.getTypeId(),
- block.getData());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement