コード例 #1
0
 public void saveInventories() {
   try {
     saver.save();
   } catch (Exception ex) {
     getLogger().log(Level.WARNING, "Could not save inventories: ", ex);
   }
 }
コード例 #2
0
 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);
   }
 }