public boolean isQuestCompleted(final String name){
  final String info=getQuest(name,0);
  if (info == null) {
    return false;
  }
  return info.equals("done");
}

public boolean isQuestCompleted ( final String name ) { final String info = getQuest ( name , 0 ) ; if ( info == null ) { return false ; } return info . equals ( "done" ) ; }
checks whether the player has completed the given quest or not .
