Inactive [FUN/ADMIN] WeatherControl v1.0 - Control the weather, or/and disable it [1337]

Discussion in 'Inactive/Unsupported Plugins' started by halvors, Apr 21, 2011.

  1. Offline

    halvors

    WeatherControl
    Version: 1.0

    License: GPLv3

    WeatherControl allows you to control the weather/thunder. You can also disable weather, thunder, lightningstrike, creeper power, pig zap, thunder fire or/and damage. Make lightning strike cause tnt-like explosions. Set weather interval. Configurable on a per-world basis.

    YouTube video by Taintedfilmz:


    Download
    Source Code

    IMPORTANT: You'll have to delete the configuration files and let WeatherControl regenerate it, or update it manually. This is because of changes, if you not do this, you may get a lot of issues.

    Features:
    • Control the weather/thunder.
    • Make lightning strike cause explosions.
    • Interval support.
    • Disable weather, thunder, lightningstrike, creeper power, pig zap, thunder fire or/and damage.
    • Configurable on a per-world basis.
    • Lightning wand, strike players, creepers or pigs.
    • Customizable messages.
    • Multiworld support.
    Usage:
    • Lightning wand item is lightstonedust (348).
    Install:
    1. Copy the WeatherControl.jar file into your plugins folder.
    2. Restart/reload server.
    3. If you want to, edit the config.yml file in plugins/WeatherControl and the world configuration files in the worlds folder.
    Commands:
    Show Spoiler

    /weather help - Show help.
    /weather status - Show weather status.
    /weather weather <on|off> <duration> - Show or toogle weather.
    /weather thunder <on|off> <duration> - Show or toogle thunder.
    /weather clear - Toogle clear.
    /weather strike <player> - Lightning strike you or/and other players.
    /weather strikemob [creeper|pig] <distance> - Lightning strike mob.
    /weather strikepos [x] [y] [z] - Lightning strike a specific position.
    /weather wand <count> - Get wand item or set count.

    Permissions nodes:
    Show Spoiler

    weathercontrol.* - Give you access to anything.
    weathercontrol.help - Show help.
    weathercontrol.status - Show weather status.
    weathercontrol.weather - Show or toogle weather.
    weathercontrol.thunder - Show or toogle thunder.
    weathercontrol.clear - Toogle clear.
    weathercontrol.strike - Lightning strike you or/and other players.
    weathercontrol.strikemob - Lightning strike mob.
    weathercontrol.strikepos - Lightning strike a specific position.
    weathercontrol.wand - Access to use wand.

    Changelog:
    Version 1.0
    • Compatible with CraftBukkit 1185.
    • Added ability to turn off interval messages.
    Version 0.9
    • Compatible with CraftBukkit 928.
    Version 0.8.4
    • Compatible with CraftBukkit 860.
    • Compatible with Permission 3.x.
    Show Spoiler

    Version 0.8.3
    • Compatible with CraftBukkit 818.
    • Fixed the bug that when load, it return null.
    • Added customizable messages (Can be used to add custom locales).
    Version 0.8.2
    • Added max wand count for prevent lag.
    • Possibly fixed errors in console.
    Version 0.8.1
    • Compatible with CraftBukkit 803.
    • Fixed grammar.
    Version 0.8
    • Added interval support.
    Version 0.7
    • Compatible with CraftBukkit 798.
    • Fixed disableSnowForm.
    • Added option to enable explosions on lightning strike, this is set in config file.
    • Weather does not disable when it's turned on.
    Version 0.6
    • Compatible with CraftBukkit 766.
    • Added function for set wand count by the wand command.
    • Right click now replaced with lightningStrikeEffect.
    • Added time formats.
    • Added status command.
    Version 0.5
    • Fixed bug reported by sausje.
    Version 0.4.9
    • Fixed bug with strike command.
    Version 0.4.8
    • Bugfix.
    Version 0.4.7
    • Bugfix.
    Version o.4.6
    • Fixed bug with wand (Reported by RobotGymnast).
    • Fixed big with strike command (Reported by Gimalo).
    Version 0.4.5
    • Fixed bug with wand (Reported by redsgreens).
    • Fixed bug with strike command.
    • Renamed lightning command to strikepos.
    • Added strikemob command and moved strike pig and creeper functionality to here.
    • Improved the alias weather.
    Version 0.4.4
    • Compatible with CraftBukkit 740.
    Version 0.4.3
    • Fixed invalid configuration file.
    • Added support for prevent lightning to cause mob and player damage, this is set in configuration file.
    Version 0.4.2
    • Fixed grammer reported by Azelote.
    • Added lightning command for lightningstrike a specific position (Command for wand), request by rockNme2349.
    Version 0.4.1
    • Added /weather alias.
    • Added pig and creepr support to /strike.
    • Added multiplie lightningstrikes to wand on right click, amount can be set in configuration file.
    • Now show help on if command is unknown.
    Version 0.4
    • Improved weather and thunder commands.
    • Added /wand command.
    Version 0.3
    • Compatible with Craftbukkit #733.
    • Added option for disable weather, thunder, lightningstrike, creeper power or pig zap.
    Version 0.2
    • Added lightning fire and damage protection.
    • Multiworld support.
    Version 0.1
    • Initital release.
     
    Bjourk and XDTobi like this.
  2. Offline

    xZise

    Your download link seems to be broken. I get a Access Denied/403.

    Fabian
     
  3. Offline

    halvors

  4. Offline

    xZise

    Hey,
    this one is more wget friendly:
    https://github.com/halvors/WeatherControl/raw/master/WeatherControl.jar

    [edit]Okay I'm really bad :D The “wc thunder” and “wc weather” don't regulate the weather (if it is activated or not) it is simply like “time day”. But the message “It will storm in 1 minute” is little confusing. Doesn't it means “It will storm for 1 minute”? And then it was 100 seconds, that are more than 1,5 minutes?![/edit]

    Fabian
     
  5. Offline

    halvors

    I don't understand, it is not working?
     
  6. Offline

    xZise

    No, it is working, but there will be no storm “in” 1 minute. I think that it should mean there will storm “for” 1 minute. For example if you say “/wc thunder on 3600” it says it will storm “in” one hour, but actually it starting to rain immediately and will stop in one hour. So I would say it is storming for one hour.

    And maybe more accurate time calculation. I mean if I define 100 seconds, and it says there will be storm “in” 1 minute it is not really accurate, as it is more than one and a half minute.

    Fabian

    PS: Maybe I'm so bad in English, and the message is correct.
     
  7. Offline

    halvors

    Got it, thanks. As you see, my English si not so good as well :D
     
  8. Offline

    xZise

    Are there any plans to support the console? So I could stop raining on one world without logging in?

    Fabian
     
  9. Offline

    halvors

    hmm. It's not a good idea. You need to have a lot of parameters for use a command in console then. Define world etc.
     
  10. Offline

    xZise

    etc.?

    wc storm off world
    wc storm on 600 other-world

    You also could add this functionality ingame, so the admin hasn't to warp into other worlds to change the weather there.

    Fabian
     
  11. Offline

    halvors

    Yes... Will look into it. If it's not too implecated i will add it in next release :)
     
  12. Offline

    TheTallest

    When I try to download .80 I get this from the link in the op

    This XML file does not appear to have any style information associated with it. The document tree is shown below.
    <Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>3CD4912F1BBE5CB0</RequestId><HostId>AxgSfqgtOv5rQNKhsfR78/aceGxaO6++p959NTApSPNWg+UNsUDbJPh/MTqR/EPC</HostId></Error>
     
  13. Offline

    xZise

    He has to reupload the jar file. In the meanwhile watch this post.

    @halvors: Maybe you should file a support ticket on github. I had the problem on my repositories, but it seems that, yours is more affected. Any maybe your repository was private (at some time) which could be a problem (but not mine).

    Fabian
     
  14. Offline

    halvors

    @xZise
    They've been public all the time...
     
  15. Offline

    PsychoNecrosis

    Github's still borked, you might want to host at an alternate site for a bit :p
     
  16. Offline

    halvors

    Last edited by a moderator: May 14, 2016
  17. Offline

    PsychoNecrosis

    Throwing a null pointer exception on startup/
    RB803
    V0.8.1 of WC
     
  18. Offline

    halvors

    May you post the error?
     
  19. Offline

    PsychoNecrosis

    Code:
    2011-05-28 22:08:48 [SEVERE] Error occurred while enabling WeatherControl v0.8.1 (Is it up to date?): null
    java.lang.NullPointerException
        at com.halvors.WeatherControl.WeatherControl.onEnable(WeatherControl.java:119)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:125)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:750)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:253)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:132)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:110)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:218)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:205)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:145)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:265)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
     
  20. Offline

    ValBGaming

    I'm getting the same error. :/
     
  21. Offline

    halvors

    Try delete the WeatherControl config folder and try again, if this not work tell me :)
     
  22. Offline

    PsychoNecrosis

    Error still persists on build 803.
     
  23. Offline

    halvors

    WeatherControl 0.8.2 released.
     
  24. Offline

    PsychoNecrosis

    Nullpointer Exception still exists :p
     
  25. Offline

    halvors

    Hmm. Then it's something with bukkit. I know other plugins get the same error.

    Sure you have 803?

    When i test it with CraftBukkit 803 i get no errors. Just for being sure, error shows when server start?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 14, 2016
  26. Offline

    PsychoNecrosis

    Yeah, error shows on the loading of the plugin at server start.

    Oddly enough, the functionality of the plugin still works, although right click only calls down a single lightning bolt as opposed to many.
     
  27. Offline

    halvors

    You can set wand count with /wc wand <count>
     
  28. Offline

    TakeMeNL

    Ey there!
    I get a spam of Lightning is Disabled in my chat.
    Every block i use right/left click it shows: Lightning is Disabled!
     
  29. Offline

    SMPMiners

    "Added option to enable explosions on lightning strike, this is set in config file." - Changelog

    Is this option still in the config file? I can't find it.
     
  30. Offline

    hugonoob

  31. Offline

    halvors

    It doesn't work with 818?
     

Share This Page