hotfix
Dieser Commit ist enthalten in:
Ursprung
f283d822b6
Commit
cc486725cb
@ -17,15 +17,16 @@ public class Config {
|
|||||||
public static final boolean RealWeather;
|
public static final boolean RealWeather;
|
||||||
|
|
||||||
static {
|
static {
|
||||||
if(!new File(instance.getDataFolder(), "weather.yml").exists()) {
|
if(!new File(Bukkit.getWorlds().get(0).getWorldFolder(), "weather.yml").exists()) {
|
||||||
instance.saveDefaultConfig();
|
|
||||||
Bukkit.getLogger().log(Level.SEVERE, "Config fehlt!");
|
Bukkit.getLogger().log(Level.SEVERE, "Config fehlt!");
|
||||||
instance.shutdown(null);
|
RealTime = true;
|
||||||
}
|
RealWeather = false;
|
||||||
|
} else {
|
||||||
FileConfiguration config = instance.getConfig();
|
FileConfiguration config = instance.getConfig();
|
||||||
RealTime = config.getBoolean("RealTime");
|
RealTime = config.getBoolean("RealTime");
|
||||||
RealWeather = config.getBoolean("RealWeather");
|
RealWeather = config.getBoolean("RealWeather");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
RealTime:
|
|
||||||
RealWeather:
|
|
In neuem Issue referenzieren
Einen Benutzer sperren