public PlayerProducedNumberOfItemsCondition(int number,String... items){
  itemProducedList=new ArrayList<String>();
  if (items != null) {
    for (    String item : items) {
      itemProducedList.add(item);
    }
  }
  quantity=number;
}

public PlayerProducedNumberOfItemsCondition ( int number , String ... items ) { itemProducedList = new ArrayList < String > ( ) ; if ( items != null ) { for ( String item : items ) { itemProducedList . add ( item ) ; } } quantity = number ; }
checks if a player has produced a given number of items
