WeatherGod
Version: 3.1.1
Description:
Simply control the weather on your server with some commands. Set it to sun, rain or storm(thundering)! With this plugin you are also able to deny sun, rain or storm in a world you want. There is a tool to strike lightnings, too!
Please be not confused with my English. I'm from Germany!
I hope this plugin is easy to use for you! If you find errors or bugs, then please send me a PM.
How to install:
- Download the plugin.
- Put the WeatherGod.jar in your plugins folder.
- Start your server!
Commands:
Label is /weathergod, /wg or /wgs
/wg - Shows information about WeatherGod!
/wg help - Shows helping information!
/wg sun <world> - Sets the weather to sun!
/wg rain <world> - Sets the weather to rain!
/wg storm <world> - Sets the weather to storm!
/wg day <world> - Sets the time to day!
/wg night <world> - Sets the time to night!
/wg sunrise <world> - Sets the time to sunrise!
/wg sunset <world> - Sets the time to sunset!
/wg check <world> - Shows the current weather & time state!
/wg forecast <world> - Shows the weather forecast!
/wg reload - Reloads the configs!
/wg states - Shows the states of each world!
/wg tool - Gives you the tool to strike lightnings!
/wg strike <player> || all - Strikes the specified <player> or all!
/wg set <world> sun/rain/storm/day/night true/false - Sets whether it can be sunny, rainy or stormy or if there can be day or night!
Permissions:
'weatherGod.*' - Gives you access to all permissions of WeatherGod!
'weatherGod' - Gives you access to see information about WeatherGod!
'weatherGod.help' - Gives you access to see helping information!
'weatherGod.sun' - Gives you access to set the weather to sun!
'weatherGod.rain' - Gives you access to set the weather to rain!
'weatherGod.storm' - Gives you access to set the weather to storm!
'weatherGod.day' - Gives you access to set the time to day!
'weatherGod.night' - Gives you access to set the time to night!
'weatherGod.sunrise' - Gives you access to set the time to sunrise!
'weatherGod.sunset' - Gives you access to set the time to sunset!
'weatherGod.check' - Gives you access to check a world for information about weather and time!
'weatherGod.forecast' - Gives you access to check the weather forecast!
'weatherGod.reload' - Gives you access to reload the configs!
'weatherGod.states' - Gives you access to see the states of each world!
'weatherGod.tool' - Gives you access to take and use the tool of WeatherGod!
'weatherGod.strike' - Gives you access to strike other players!
'weatherGod.set' - Gives you access to set options for certain worlds!
Notes:
If you create a new world with MultiVerse e.g. on your server, you have to reload WeatherGod with /wg reload to get the new world loaded in the config of WeatherGod.
WeatherGod is using Java 7!
To-Do list:
- Forecasts shown on signs
Have an idea or a suggestion?
Changelog:
- Version 3.1.1
- - Bugfix when a player types /wg strike all the player himself/herself got struck, too
- Version 3.1
- - New parameter ":all". When <world> gets replaced with this parameter it will set the given weather or time to all worlds (as requested by IchCraft033 ;))
- - Bugfix where worlds were not added to the config after config was reloaded
- Version 3.0
- - New command /wg day
- - New command /wg night
- - New command /wg sunrise
- - New command /wg sunset
- - New command /wg forecast
- - Added Possibility to disable day or night
- Version 2.1
- - Bugfixes (the WeatherGod config should now work correctly for all weather cases, but one: If "sun: true", "rain: false" & "storm: true" the weather can't be set to storm. It is impossible, because there must be rain so that it can thunder. Maybe you have an Idea on how to get it work?)
- Version 2.0
- - Plugin completely new written
- - New style
- - Added new command /wgs states Shows the weather of each world
- - Command /wgs check works all time now!
- - New command option for /wgs strike... -> /wgs strike all Strikes all players on the server
- Version 1.5
- - Command /wgs check works now!
- - Mistake-Fix: When it was storming and the weather was set to rain, it was still storming
- Version 1.4.2
- - If "sun: false; rain: false; storm: true;" storm seemed not to be always active. Now fixed hopefully :)
- - Added new command /wgs check. Normally this should show what state of weather it is in the moment. But doesn't work yet.
- Version 1.4.1
- - Now you can set whether you want thunderstorm or not in your world (see config) -> Thanks to Bukkit!
- Version 1.4
- - Added new command /wgs set <world> sun/rain true/false With it you can set whether you want that it can be sunny or rainy in this world (also configurabel in the config!) For example: If you have "sun: true" and "rain: false" in a world it will never rain in this world. Info: If you set "sun" and "rain" to false the weather will not change the state it is in this moment!
- - Some fixes
- Version 1.3.1
- - Changed main command to "/wgs" because of WorldGuard
- - Now developed with Java 6 for people who had problems with getting the plugin loaded
- - Some fixes
- Version 1.3
- - Added a configuration file to set the tool id
- - Added a new command /wg tool This gives you the tool to strike lightnings
- Version 1.2.1
- - Fixed lightning not creating fire when striking with the tool
- Version 1.2
- - Added a tool to strike lightnings
- - Offical release
- Version 1.1
- - Added function to strike other players
- - Added function to reload the plugin
- Version 1.0
- - Unoffical release
Want to see videos?
Visit the videos page!
@DOGCKyle
I see there in your config, that there are still datas from the old version. So I would advise you to let the config be recreated and try it again.
Yesterday I myself have found another bug in my plugin. When you have: "sun: false rain: true storm: true" and the weather is set to storm you can't set the weather to rain. You can, but it won't change. I have to make a further look into my codes.
I did not even notice that there was a config file until you mentioned it. Everything is set to true, and I have not ever modified this file. Here is the entire contents:
# Configurations for WeatherGod
Strike-Lightning-Tool: 369
Worlds:
Creativia:
sun: true
rain: true
storm: true
Wolfia:
sun: true
worlds:
Creativia:
sun: true
rain: true
storm: true
Wolfia:
sun: true
rain: true
storm: true
Rykania:
sun: true
rain: true
storm: true
Config:
Strike-Tool-Id: 369
It looks to me like there is half of the file in the first 9 lines, and then the full config after. Perhaps I should delete the whole file and let it be recreated when the server restarts?
Not sure if you understand what I meant about the exception. Every command I have set related to weather seems to work fine (no errors or anything), but nothing actually happens (so I cannot stop the rain). The only command that gives me an error is "/wgs sun", "/wgs rain" and "/wgs storm". These will tell me the weather cannot be set in this world. I get the same error on all three worlds.
Thanks for your quick response, by the way!
@DOGCKyle
Have you checked if sun is not set to "false" in the config for this world? Otherwise tell me your weather settings in the config for the specified world, please.
Nevertheless I don't really understand why the exception is "/wgs sun/storm/rain", because that's the exception from the older version. The new exception should be "/wgs help" when you type an unknown argument. Maybe you have still installed the older version. Have you deleted the config after replacing the old jar file and restarted the server afterwards?
Thank you for your comment :)
The newest version (2.0) seems to have a rather annoying bug, it will not stop raining on my server. I've tried every command for weather in this plugin as well as "/toggledownfall" and commands in Essentials. The commands seem to work, but it keeps raining. The exception is "/wgs sun/storm/rain", those say the weather could not be set in this world.
I have not had this issue until I updated this plugin, so it's likely something you did not notice when you rewrote the plugin. This plugin seems to be faster at changing weather than anything else, and the wand feature works perfectly, so I'd rather not remove this, but this bug makes both features useless. If you could take a look and see if there's anything you could do, that'd be great!
add a weather reducer
You should add a command that makes it so there will never be weather in a certain world.
With the new version you should be able to just have storm enabled in your world! If there are any problems with this plugin, then please send me a PM!
@bluehasia
Mmh. I don't think this would work. Because the WeatherChangeEvent can only check for if it is sunny or rainy. But not if it is thundering :/. Bukkit has to add a function for this. But I don't know if this is possible. Sorry.
As I know you can't change the amount of lightning.
can this plugin take over the the default rain function? when it rains it seems to never thunder on my server and this is why i got this plugin for the storm command......can there be a way to add it in the config so it does a storm instead of rain?
oh and also edit the amount of lighting?
@esben2000
Thanks :)
You're an Genius
@wkera
What do you mean?
"preventIgnition" not working?
@Joymo
Yea i know. Sometimes it happens. But the tool still works. I do not know why or when this error comes. :(
Throws errors:
http://pastie.org/3818527
@ThisUsernameIsMine
Do you have installed Java 7?
I developed it with it.
Is it better to use Java 6?
It seems you are right with WorldGuard. I will change the commands to /wgs
Doesn't /wg conflict with WorldGuard's commands?
edit: unfortunately your plugin doesn't support Java 6 :-/
00:29:24 [SEVERE] Could not load 'plugins\WeatherGod.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: me/Schulzi/WeatherGod/WeatherGod : Unsupported major.minor version 51.0
@MERCHANToDEATH
When you type /wg storm the weather should change to storm and lightnings should strike randomly. Like the normal storm in minecraft. Or do you mean something else?
Can this do random lightning strikes? Like real lightning?