WeatherRestrictions
Update: (September 30th, 2013) Entirely Re-coded plugin! Everything is brand new!
This is no longer a fork of the NoWeather Plugin! I designed it because it rains/snows too frequently on my server, yet I don't really want to put the weather on a schedule. This has several commands to start and stop storms (respects config file) as well as optional permissions support. If there is no permissions plugin the commands are OP only.
Note: As an entirely new, recoded version of the plugin, this should fix all the race conditions, etc. and should work on every server, large or small!
Features
- Can totally stop weather
- Toggles different aspects of the weather.
- An option to stop snow and/or ice from accumulating
- An option to make all storms thunder storms!
- Set the minimum delay before it can snow/rain again.
- Set the maximum time it can rain/snow.
- Set the max amount of time between the rainy times.
- Control the storms with admin commands
- Permissions support
- Configurable chance (disabled by default) Supercharged lightning strikes that will blow a hole in the ground.
- Configurable explosion radius
Commands
- /wr rain <world> and /rain <world> - Makes it rain in that world. Defaults to current world if no options given.
- /wr thunder <world> and /thunder <world> - Makes it start thundering in the current world. Defaults to current world if no options given.
- /wr lightning and /lightning - make a lightning bolt strike in a random locationwithin a radius of 10 blocks from you. (It has the same chance as being supercharged as regular lightning)
- /wr clear <world> and /clearrain or /rainclear <world> - Clears all thunder and rain from the world. Defaults to current world if no options given.
- /wr stats and /weatherstats - Gives you stats on the current weather in each world.
- /wr reload - Reloads the configuration file.
Permissions
- weatherRestrictions.rain - Can use /rain command
- weatherRestrictions.thunder - Can use /thunder command
- weatherRestrictions.clear - Can use /rainclear and /clearrain command
- weatherRestrictions.stats - Can use /weatherstats command
- weatherRestrictions.lightning - Can use the /lightning command
- weatherrestrictions.reload - Reload the configuration file
Config File Options
- CanRain - Set to false to disable all rain/snow in a world
- MaxSunTime - Maximum time to wait between storms in seconds.
- MinimumSunTime - Minimum amount of time in seconds between storms.
- MaxRainTime - Maximum time for a storm in seconds.
- MinimumRainTime - Minimum amount of time in seconds for a storm.
- CanSnowForm - if set to false will disable all snow accumulation in that world
- CanSnowMelt - if set to false will disable all snow melting in that world
- CanIceForm - if set to false will disable all ice accumulation in that world
- CanIceMelt - if set to false will disable all ice melting in that world
- ThunderstormChancePercentage - Sets the thunderstorm chance in the world. Set to 0 to disable thunderstorms.
- SuperchargedThunderChance - Set the percentage chance that a supercharged thunderbolt will blow a hole in the ground.
- SuperchargedExplosionRadius - Set the radius of the supercharged explosion
-
View User Profile
-
Send Message
Posted Jan 30, 2012@Digitalink2008
Yes, you will need to do a /reload command. I'll see about adding in a option in the next version to reload just the weather restrictions config files.
-
View User Profile
-
Send Message
Posted Jan 30, 2012Quick question. I see no reload command. Will the plugin pickup config changes automatically or do i need to /reload for that?
Thanks, D.
-
View User Profile
-
Send Message
Posted Jan 30, 2012Hi,
while using latest RB (1.1R3) and WR 2.5, i saw this when starting the server :
11:47:52 [INFOS] [WeatherRestrictions] Loading WeatherRestrictions v2.5. 11:47:52 [GRAVE] Wrong method arguments used for event type registered 11:47:52 [INFOS] WeatherRestrictions version 2.5 is enabled!
-
View User Profile
-
Send Message
Posted Jan 29, 2012I got this error when starting my server: http://dev.bukkit.org/paste/4663/
-
View User Profile
-
Send Message
Posted Jan 27, 2012YES, CONTROL FROM THE CONSOLE. THANK YOUUUUU.
-
View User Profile
-
Send Message
Posted Jan 14, 2012@Tux2
Duly noted.
-
View User Profile
-
Send Message
Posted Jan 14, 2012@thefowles1
I just tested it and yes, this bug is still present in the newest version of EpicZones. I have just sent some modified code for EpicZones to them to implement in the next version to fix this.
-
View User Profile
-
Send Message
Posted Jan 14, 2012@Tux2
I'll try it in a bit. In the meantime, version 0.33 of EZ supposedly fixes the "could not pass event ENTITY_EXPLODE" bug that you guys said you were working on... but I'm still getting it. I have 0.33 of EZ and 2.3 for WR. :/ Radius is set to 5.0.
-
View User Profile
-
Send Message
Posted Jan 14, 2012@thefowles1
Yes, that option is for all types of rain, although I may add in a feature where you can override it and trigger a storm anyways. Try it again, you may not have waited 10 minutes before trying to trigger it again. Also, looking at the EpicZone plugin that is one I might just use on my server. :) Also, just for my own curiosity, how big do you have the explosion radius set to for the supercharged lightning strike?
-
View User Profile
-
Send Message
Posted Jan 14, 2012@Tux2
It's set to 600, which I'm presuming is seconds. Maybe I miscalculated the duration afterward. Anywho, does that option also apply to naturally occurring rain? I was under the presumption that was its function: minimum 600 seconds before rain can naturally occur again. Also, EpicZones released an update, which should fix the errors for explosions by supercharged bolt. I'm going to test it now.
-
View User Profile
-
Send Message
Posted Jan 13, 2012@thefowles1
How long do you have the minimum delay set between storms? This plugin will not allow you to trigger another storm until that delay has passed.
-
View User Profile
-
Send Message
Posted Jan 12, 2012Why do I keep getting the "Please wait, you can't trigger a storm just yet." message? It's been giving me that message since I typed /wr clear about 20 minutes before...
-
View User Profile
-
Send Message
Posted Jan 12, 2012@Tux2
You've made my day with the news. Rock on. :)
-
View User Profile
-
Send Message
Posted Jan 12, 2012@thefowles1
As explained in the ticket you opened on EpicZones we are already working on getting this fixed. I pushed a new build around 12 hours ago addressing this issue for the EpicZones devs to work with. I actually call the explosion event manually through bukkit, so this doesn't use the tnt, creeper, or ghast fireball explosions. That's also the reason why you can set the radius of the explosion as well.
As far as allowing the commands through the console? Yes, I'll make sure to add that in the next version.
-
View User Profile
-
Send Message
Posted Jan 11, 2012You'll have to pardon my lack of jargon, but I'm curious... what type of explosion does the supercharged bolt use? Does it use a TNT explosion for it? The reason I ask is because I use a zone plugin called EpicZones and when I use a lightning bolt and it gets supercharged, the explosion wrecks a certain area, but a bunch of errors are thrown at me when it happens (http://pastebin.com/rWRZ4Smq). I have tested it with the plugin's explosion protections all disabled, and it still happens. Also, as a feature request, is it possible to allow the commands via the console? Being required to log in just to disable weather is tolerable, but slightly annoying.
-
View User Profile
-
Send Message
Posted Dec 18, 2011@Kartus
Yes, most certainly is as 1.0.1-R1 is just another name for 1597.
-
View User Profile
-
Send Message
Posted Dec 18, 2011is this 1597 compatible?
-
View User Profile
-
Send Message
Posted Sep 30, 2011@desht
Bukkit Superperms is now supported!
-
View User Profile
-
Send Message
Posted Sep 18, 2011Bukkit superperms is planned, I just have to take the time to do it.
-
View User Profile
-
Send Message
Posted Sep 8, 2011Nice plugin. But it doesn't seem to support Bukkit superperms, from my testing. Is that planned?