How can one query in an event if it rains? And we call this event? WatherChangeEvent is not it? Would like to spend a message when it rains.
Weather Change Event # toWeatherState
Gets the state of weather that the world is being set to
Returns:
true if the weather is being set to raining, false otherwise
For what?
Spigot / Bukkit?
Script?
MCP?
Mod for Labymod or something?
?
Spigot 1.8.8
Can you write an example?
@EventHandler
public void onWeatherChange (WeatherChangeEvent event) {
if (event.toWeatherState ()) {
System.out.println ("It's going to rain.")
}
}
Thank you! So the message comes first & then it starts to rain?
Habs not tried, but probably