use of net.dzikoysk.funnyguilds.config.serdes.SimpleDateFormatTransformer in project FunnyGuilds by FunnyGuilds.
the class ConfigurationFactory method createMessageConfiguration.
public MessageConfiguration createMessageConfiguration(File messageConfigurationFile) {
return ConfigManager.create(MessageConfiguration.class, (it) -> {
it.withConfigurer(new YamlBukkitConfigurer());
it.withSerdesPack(registry -> {
registry.register(new DecolorTransformer());
registry.register(new SimpleDateFormatTransformer());
});
it.withBindFile(messageConfigurationFile);
it.saveDefaults();
it.load(true);
});
}
Aggregations