public static boolean isInJail(final Player inmate){
  final StendhalRPZone zone=inmate.getZone();
  if ((zone != null) && zone.equals(jailzone)) {
    for (    final Rectangle cellBlock : cellBlocks) {
      if (cellBlock.contains(inmate.getX(),inmate.getY())) {
        return true;
      }
    }
  }
  return false;
}

public static boolean isInJail ( final Player inmate ) { final StendhalRPZone zone = inmate . getZone ( ) ; if ( ( zone != null ) && zone . equals ( jailzone ) ) { for ( final Rectangle cellBlock : cellBlocks ) { if ( cellBlock . contains ( inmate . getX ( ) , inmate . getY ( ) ) ) { return true ; } } } return false ; }
is player in a jail cell ? ignores visitors outside of cells .
