@EventHandler(priority=EventPriority.HIGH,ignoreCancelled=true) public void onBucketFill(PlayerBucketFillEvent event){
  Match match=Cardinal.getMatch(event.getPlayer());
  if (match == null || !match.hasPlayer(event.getPlayer())) {
    return;
  }
  for (  AppliedRegion reg : get(match,ApplyType.BLOCK,ApplyType.BLOCK_BREAK)) {
    Block evaluating=event.getBlockClicked();
    if (apply(reg,evaluating.getLocation(),event.getPlayer(),event,event,evaluating,event.getPlayer())) {
      break;
    }
  }
}

@ EventHandler ( priority = EventPriority . HIGH , ignoreCancelled = true ) public void onBucketFill ( PlayerBucketFillEvent event ) { Match match = Cardinal . getMatch ( event . getPlayer ( ) ) ; if ( match == null || ! match . hasPlayer ( event . getPlayer ( ) ) ) { return ; } for ( AppliedRegion reg : get ( match , ApplyType . BLOCK , ApplyType . BLOCK_BREAK ) ) { Block evaluating = event . getBlockClicked ( ) ; if ( apply ( reg , evaluating . getLocation ( ) , event . getPlayer ( ) , event , event , evaluating , event . getPlayer ( ) ) ) { break ; } } }
filters playerbucketfillevent ( removing a block of liquid ) . < p > applies to : block and block break . < p / >
