SteamWar/FightSystem
Archiviert
13
1

WIP: split up config #13

Manuell gemergt
Lixfel hat 2 Commits von worldconfig nach master 2019-06-14 12:54:41 +02:00 zusammengeführt
Nur Änderungen aus Commit 9ad5512c13 werden angezeigt - Alle Commits anzeigen

Datei anzeigen

@ -95,7 +95,7 @@ public class Config {
Bukkit.shutdown(); Bukkit.shutdown();
} }
FileConfiguration config = FightSystem.getPlugin().getConfig(); 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"); NoPlayerOnlineDuration = config.getInt("Times.NoPlayersOnlineDuration");
SetupDuration = config.getInt("Times.SetupDuration"); SetupDuration = config.getInt("Times.SetupDuration");