use of your.name.plugin.config.Configuration in project PaperPluginTemplate by oskarscot.
the class Plugin method loadConfig.
private void loadConfig() {
Configuration configuration = ConfigManager.create(Configuration.class, it -> it.withConfigurer(new JsonGsonConfigurer(), new SerdesBukkit()).withBindFile(new File(this.getDataFolder(), "config.json")).saveDefaults().load(true));
this.injector.registerInjectable(configuration);
}
Aggregations