mirror of
https://github.com/trainerlord/WorldSystem.git
synced 2025-01-06 18:47:52 +01:00
remove dependence config file
This commit is contained in:
parent
e227741395
commit
a9925ff43e
@ -37,7 +37,6 @@ public class WorldSystem extends JavaPlugin {
|
||||
File folder = getInstance().getDataFolder();
|
||||
File dir = new File(folder + "/worldsources");
|
||||
File config = new File(folder, "config.yml");
|
||||
File dconfig = new File(folder, "dependence.yml");
|
||||
File languages = new File(folder + "/languages");
|
||||
File gui = new File(folder, "gui.yml");
|
||||
|
||||
@ -68,16 +67,6 @@ public class WorldSystem extends JavaPlugin {
|
||||
// If has custom language
|
||||
MessageConfig.checkConfig(new File(languages, PluginConfig.getLanguage() + ".yml"));
|
||||
|
||||
if (!dconfig.exists()) {
|
||||
try {
|
||||
dconfig.createNewFile();
|
||||
} catch (IOException e) {
|
||||
WorldSystem.logger().log(Level.SEVERE,"Wasn't able to create DependenceConfig");
|
||||
e.printStackTrace();
|
||||
}
|
||||
new DependenceConfig();
|
||||
}
|
||||
|
||||
YamlConfiguration cfg = YamlConfiguration.loadConfiguration(config);
|
||||
SettingsConfig.checkConfig();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user