@EventHandler public void onRain(WeatherChangeEvent event) { if (event.toWeatherState() == true) { Random rand = new Random(); int value = rand.nextInt(100) + 1; if (value < 60) { getServer() .broadcastMessage( ChatColor.DARK_RED + "The gods are cruel, insufferable rain pours down upon you"); } else { event.setCancelled(true); getServer() .broadcastMessage( ChatColor.BLUE + "The gods are kind, another few days of clear skies"); } } }