Hello Everyone…so I have a massive Customized Plugin that has a done of config…problem is i want users to know exactly where to find things…so I though hey my plugin creates a folder in the config then the actual config…why not another file inside of that folder? problem is…i’m kinda blanking on how to do it…recomendations please?
I wrote my own config handler to to manage this. You don’t have to do it this way but it’ll give you the general idea
…ok yes i also use a configuration manager…however how would i add an adittional config to it??? i’m sorry lol
idk about your method but using the class above all you need to do is provide a config name when creating an instance of ConfigManager, or folder name and config name. for example
ConfigManager configManager = new ConfigManager(“custom.conf”);
ConfigManager configManager = new ConfigManager(“NewFolder”, “custom.conf”);
If you take a look at the load method you’ll see HoconConfigurationLoader contains a builder, where you can set a specified file. This is problably what you will be most interested in if your planning on using your own method.
There’s probably a better method of doing this, but this is just how I’ve been handling it. Maybe a dev will chime in at some point…
Very welll…but how would i then call them from that new config??? lol
cause right now it’s ConfigurationManager.getInstance().getconfig().getNode…so? lol
here’s what i have for my config here