public void saveInventories() { try { saver.save(); } catch (Exception ex) { getLogger().log(Level.WARNING, "Could not save inventories: ", ex); } }
public void loadInventories() { try { if (saver == null) { saver = new ValueSaver(listener, new File(this.getDataFolder(), "inventories.yml")); } saver.load(); } catch (Exception ex) { getLogger().log(Level.WARNING, "Could not load inventories: ", ex); } }