Ejemplo n.º 1
0
  /** Loads the config */
  public void load() {
    try {
      if (!file.exists()) {
        file.createNewFile();
      }

      super.load(file);
    } catch (InvalidConfigurationException e) {
      e.printStackTrace();
    } catch (IOException e) {
      e.printStackTrace();
    }

    if (createDefaultValues()) {
      save();
      load();
    }
  }