use of net.dzikoysk.funnyguilds.config.tablist.TablistPageSerializer in project FunnyGuilds by FunnyGuilds.
the class ConfigurationFactory method createTablistConfiguration.
public TablistConfiguration createTablistConfiguration(File tablistConfigurationFile) {
return ConfigManager.create(TablistConfiguration.class, (it) -> {
it.withConfigurer(new OkaeriValidator(new YamlBukkitConfigurer(), true), new SerdesCommons());
it.withSerdesPack(registry -> {
registry.register(new NumberRangeTransformer());
registry.register(new TablistPageSerializer());
registry.register(new SkinTextureSerializer());
});
it.withBindFile(tablistConfigurationFile);
it.saveDefaults();
it.load(true);
it.migrate(new T0001_Update_player_list_animated());
});
}
Aggregations