public static boolean isBanned(String ip){
  for (  BannedIP ipBan : banList) {
    if (ipBan.isActive() && NetworkUtils.checkIPMatching(ipBan.getMask(),ip)) {
      return true;
    }
  }
  return false;
}

public static boolean isBanned ( String ip ) { for ( BannedIP ipBan : banList ) { if ( ipBan . isActive ( ) && NetworkUtils . checkIPMatching ( ipBan . getMask ( ) , ip ) ) { return true ; } } return false ; }
checks if ip ( or mask ) is banned
