for (String dir : config.getStringList("component-jar-dirs", Arrays.asList("component-jars"))) {
final File classesDir = new File(getDataFolder(), dir);
if (!classesDir.exists() || !classesDir.isDirectory()) {
classesDir.mkdirs();
}
componentManager.addComponentLoader(new JarFilesComponentLoader(getLogger(), classesDir, configDir) {
@Override
public ConfigurationFile createConfigurationNode(File file) {
return new YAMLProcessorConfigurationFile(new YAMLProcessor(file, true, YAMLFormat.EXTENDED));
}
});