From 9ad5512c13a4a560282d25d1d980ed87e887a95d Mon Sep 17 00:00:00 2001 From: Travis CI Date: Fri, 14 Jun 2019 11:35:08 +0200 Subject: [PATCH] Fixing Pathbug --- src/me/yaruma/fightsystem/utils/Config.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/me/yaruma/fightsystem/utils/Config.java b/src/me/yaruma/fightsystem/utils/Config.java index e7df061..461958a 100644 --- a/src/me/yaruma/fightsystem/utils/Config.java +++ b/src/me/yaruma/fightsystem/utils/Config.java @@ -95,7 +95,7 @@ public class Config { Bukkit.shutdown(); } FileConfiguration config = FightSystem.getPlugin().getConfig(); - YamlConfiguration worldconfig = YamlConfiguration.loadConfiguration(new File("plugins/" + FightSystem.getPlugin().getName() + "/config.yml")); + YamlConfiguration worldconfig = YamlConfiguration.loadConfiguration(new File(Bukkit.getWorldContainer().getPath() + Bukkit.getWorlds().get(0) + "/config.yml")); NoPlayerOnlineDuration = config.getInt("Times.NoPlayersOnlineDuration"); SetupDuration = config.getInt("Times.SetupDuration");