コード例 #1
0
 public void saveConfig() {
   try {
     YamlConfig.save(configFile);
   } catch (Exception e) {
     plugin.getLogger().info("Failed to save commands.yml: " + e.getMessage());
   }
 }
コード例 #2
0
 protected void refreshConfig() {
   try {
     YamlConfig.save(configFile);
     reloadConfig();
   } catch (IOException e) {
     plugin.getLogger().warning("Failed to write changed commands.yml: " + e.getMessage());
   }
 }