public static void saveVariables() { VariablesManager vm = ScrollingMenuSign.getInstance().getVariablesManager(); for (SMSVariables variables : vm.listVariables()) { save(variables); } Debugger.getInstance().debug("saved " + vm.listVariables().size() + " variable sets to file."); }
public static void loadVariables() { VariablesManager vm = ScrollingMenuSign.getInstance().getVariablesManager(); vm.clear(); for (File f : DirectoryStructure.getVarsFolder().listFiles(ymlFilter)) { vm.load(f); } Debugger.getInstance() .debug("Loaded " + vm.listVariables().size() + " variable sets from file."); }