public String listQuests(final Player player){
  final StringBuilder sb=new StringBuilder();
  sb.append("\r\n#'Open Quests': ");
  boolean first=true;
  for (  final IQuest quest : quests) {
    if (quest.isStarted(player) && !quest.isCompleted(player)) {
      if (!first) {
        sb.append(", ");
      }
      sb.append(quest.getName());
      first=false;
    }
  }
  sb.append("\r\n#'Completed Quests': ");
  first=true;
  for (  final IQuest quest : quests) {
    if (quest.isCompleted(player)) {
      if (!first) {
        sb.append(", ");
      }
      sb.append(quest.getName());
      first=false;
    }
  }
  return sb.toString();
}

public String listQuests ( final Player player ) { final StringBuilder sb = new StringBuilder ( ) ; sb . append ( "\r\n#'Open Quests': " ) ; boolean first = true ; for ( final IQuest quest : quests ) { if ( quest . isStarted ( player ) && ! quest . isCompleted ( player ) ) { if ( ! first ) { sb . append ( ", " ) ; } sb . append ( quest . getName ( ) ) ; first = false ; } } sb . append ( "\r\n#'Completed Quests': " ) ; first = true ; for ( final IQuest quest : quests ) { if ( quest . isCompleted ( player ) ) { if ( ! first ) { sb . append ( ", " ) ; } sb . append ( quest . getName ( ) ) ; first = false ; } } return sb . toString ( ) ; }
lists all quest the player knows about , including open and completed quests .
