use of org.bukkit.configuration.file.YamlConstructor in project BKCommonLib by bergerhealer.
the class ConfigurationNode method toString.
@Override
public String toString() {
DumperOptions yamlOptions = new DumperOptions();
YamlRepresenter yamlRepresenter = new YamlRepresenter();
Yaml yaml = new Yaml(new YamlConstructor(), yamlRepresenter, yamlOptions);
yamlOptions.setIndent(2);
yamlOptions.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK);
yamlRepresenter.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK);
return yaml.dump(source.getValues(false));
}
Aggregations