The ConfigManager class contains methods that can be helpful when creating new configurations. To start, we will need to create a class that inherits from ConfigManager
public class MyConfig extends ConfigManager<MyPlugin> {
protected MyConfig(MyPluginplugin) {
super(plugin);
}
}
It is recommended to follow the singleton pattern within this class. A complete example would be: