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"); } }
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(); }