示例#1
0
  public void load() {
    File savePathFile = plugin.getDataFolder();
    if (!savePathFile.exists()) savePathFile.mkdir();

    File saveFile = fileCheck(savePath);
    if (saveFile == null) return;

    try {
      load(saveFile);
    } catch (Exception e) {
      plugin.log("Error on loading Enables");
    }
  }
示例#2
0
  public void loadDelete() {
    File savePathFile = plugin.getDataFolder();
    if (!savePathFile.exists()) savePathFile.mkdir();

    File saveFile = new File(savePath);
    if (!saveFile.exists()) return;

    try {
      load(saveFile);
    } catch (Exception e) {
      plugin.log("Error on loading Enables");
    }

    saveFile.delete();
  }