Answer the question
In order to leave comments, you need to log in
How to fix the problem with creating a folder?
I create a config folder:
private void configLoad() {
try {
configFile = new File(getDataFolder(), "config.yml");
if (!configFile.exists()) {
configFile.createNewFile();
}
configuration = ConfigurationProvider.getProvider(YamlConfiguration.class).load(configFile);
} catch (IOException ex){
getLogger().info("Could not create config!");
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question