@EventHandler(priority=EventPriority.MONITOR,ignoreCancelled=true) public void onBlockBreak(BlockBreakEvent event){
  Player player=event.getPlayer();
  Match match=Cardinal.getMatch(player);
  List<Destroyable> destroyables=getDestroyables(match);
  if (match == null || !match.hasPlayer(player) || destroyables.size() == 0) {
    return;
  }
  Block block=event.getBlock();
  destroyables.forEach(null);
}

@ EventHandler ( priority = EventPriority . MONITOR , ignoreCancelled = true ) public void onBlockBreak ( BlockBreakEvent event ) { Player player = event . getPlayer ( ) ; Match match = Cardinal . getMatch ( player ) ; List < Destroyable > destroyables = getDestroyables ( match ) ; if ( match == null || ! match . hasPlayer ( player ) || destroyables . size ( ) == 0 ) { return ; } Block block = event . getBlock ( ) ; destroyables . forEach ( null ) ; }
checks the destroyable ' s state when a player breaks a block .
