use of fr.xephi.authme.settings.commandconfig.CommandConfig in project AuthMeReloaded by AuthMe.
the class GenerateCommandsYml method executeDefault.
@Override
public void executeDefault() {
File file = new File(COMMANDS_YML_FILE);
// Get the default
CommandConfig commandConfig = CommandSettingsHolder.COMMANDS.getDefaultValue();
// Export the value to the file
SettingsManager settingsManager = new SettingsManager(new YamlFileResource(file), null, CommandSettingsHolder.class);
settingsManager.setProperty(CommandSettingsHolder.COMMANDS, commandConfig);
settingsManager.save();
System.out.println("Updated " + COMMANDS_YML_FILE);
}
Aggregations