mirror of
https://github.com/trainerlord/WorldSystem.git
synced 2025-01-07 18:58:38 +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 folder = getInstance().getDataFolder();
|
||||||
File dir = new File(folder + "/worldsources");
|
File dir = new File(folder + "/worldsources");
|
||||||
File config = new File(folder, "config.yml");
|
File config = new File(folder, "config.yml");
|
||||||
File dconfig = new File(folder, "dependence.yml");
|
|
||||||
File languages = new File(folder + "/languages");
|
File languages = new File(folder + "/languages");
|
||||||
File gui = new File(folder, "gui.yml");
|
File gui = new File(folder, "gui.yml");
|
||||||
|
|
||||||
@ -68,16 +67,6 @@ public class WorldSystem extends JavaPlugin {
|
|||||||
// If has custom language
|
// If has custom language
|
||||||
MessageConfig.checkConfig(new File(languages, PluginConfig.getLanguage() + ".yml"));
|
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);
|
YamlConfiguration cfg = YamlConfiguration.loadConfiguration(config);
|
||||||
SettingsConfig.checkConfig();
|
SettingsConfig.checkConfig();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user