mirror of
https://github.com/PEXPlugins/Modifyworld.git
synced 2025-02-15 01:01:28 +01:00
Fixed configuration saving
This commit is contained in:
parent
8eea065876
commit
0c76ed2718
@ -76,16 +76,7 @@ public class Modifyworld extends JavaPlugin {
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
File configFile = new File(this.getDataFolder(), "config.yml");
|
||||
if(!configFile.exists()) {
|
||||
configFile.mkdirs();
|
||||
}
|
||||
|
||||
config.save(configFile);
|
||||
} catch (IOException e) {
|
||||
logger.severe("[Modifyworld] Can't save new configuration file!");
|
||||
}
|
||||
this.saveConfig();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user