From a9925ff43e5412f5fb487d18f1dae612cafcc14f Mon Sep 17 00:00:00 2001 From: danielb Date: Thu, 23 May 2024 19:38:48 +0000 Subject: [PATCH] remove dependence config file --- src/main/java/de/butzlabben/world/WorldSystem.java | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/main/java/de/butzlabben/world/WorldSystem.java b/src/main/java/de/butzlabben/world/WorldSystem.java index 538ac01..7ba08b7 100644 --- a/src/main/java/de/butzlabben/world/WorldSystem.java +++ b/src/main/java/de/butzlabben/world/WorldSystem.java @@ -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();