getCurrentWeather()

A new update is now available, introducing "Points of interest" and many more changes!
Latest hotfix: 0.9 (2025-11-05)
  • Hey, in my DiscordPlugin i had a function to get and set weather from Discord. While restoring my code and fixing stuff and bringing it up to date i could not figure out how to get weather human readable or set it from string.

    Anyone else any idea ? It looks uncool in logs and Discord:


  • you passing your output the instance of the weather def and not the weather name.


    Java
    public void weatherTest(){
    WeatherDefs.Weather def = Server.getCurrentWeather();
    String weatherName = def.name;
    println(weatherName, 14);
    }
  • and to set the weather (untested since a few updates ago).


    Java
    public void setWeather(String newWeather){
    WeatherDefs.Weather newWeatherDef = Definitions.getWeather(newWeather);
    Server.setWeather(newWeatherDef, false);
    }

Participate now!

Don’t have an account yet? Create a new account now and be part of our community!