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

    MufinMcFlufin

    I think he's asking whether or not it does.
     
  3. Offline

    halvors

    It does.
     
  4. Offline

    MufinMcFlufin

    I'm currently waiting on four plugins to be updated to 818 to update my server, so I can try it out then. Thanks for updating so quickly.
     
  5. Offline

    halvors

    The [803] in top does only say that it is compiled with CraftBukkit 803, i've tested it on my server and it works for me :)
     
  6. Offline

    xarrek

    I have problem with new build (818). I use old config file from 803.
    After I use somethink I have message.
    After I disable wand everythink work good.
     

    Attached Files:

  7. Offline

    halvors

    Your wand is set to stick or?
     
  8. Offline

    AVirusC

    I get this error also in 819:

    14:45:48 [SEVERE] Error occurred while enabling WeatherControl v0.8.2 (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:134)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:112)
    at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:339)
    at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleCommandMap.java:247)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:128)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:273)
    at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:430)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:415)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  9. Offline

    xZise

    When do you get the exception? On my server (also using cb 819) I have no errors.

    Fabian

    Maybe a new "command" style? Something like:
    /wc <type> [duration] [world]
    Where type could contain following values:
    • None
    • Raining/Storm/Weather
    • Thunder
    The duration and world is optional. If the duration isn't set, the selected weather will stay for a random amount of time?

    Fabian

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

    AVirusC

    As soon as the plugin loads, but I am still able to use the lightning wand, its the command itself that may not be working. I'm starting to think it may have something to do with Essentials overriding the plugin for its own /weather command. I may drop a line over there to see if it is something they can fix with Essentials. If I /weather i get essentials weather command, if i /wc i get nothing, and the error above I get during server startup.
     
  11. Offline

    M1sT3rM4n

    Still getting an error:

    6-2-2011 7-04-34 PM.png
     
  12. Offline

    halvors

    Seems like it conflicts with Essentials or something like that.
     
  13. Offline

    MufinMcFlufin

    I think the thing that trips people (like myself) up is that when it says 803, one would be unsure if it would work in 818. Then when one hears it works on 818, they wonder why it doesn't say 818 in the first place.
     
  14. Offline

    halvors

    Changed header tom 818.
     
  15. Offline

    xarrek

    Yes but when I use other items like pickaxe or doors plugin give me this message.
    I set config to nether but message still appear.
     
  16. 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.
     
  17. Offline

    halvors

    @SMPMiners
    Look in world config file, worlds/world.yml
     
  18. Offline

    tha d0ctor

    This is correct, I had an error with essentials and this plugin
     
  19. Offline

    hugonoob

    18:30:23 [SCHWERWIEGEND] Error occurred while enabling WeatherControl v0.8.2 (Is
    it up to date?): null
    java.lang.NullPointerException
    at com.halvors.WeatherControl.WeatherControl.onEnable(WeatherControl.jav
    a: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(SimplePluginManage
    r.java:253)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:134)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:112)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:232)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:219)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:146)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)


    Pls help
    I have only Worldedit , Worldguard , CommandBook and Permissions
     
  20. Offline

    Exidous

    Same ^^^^^^^

    reverting back to weather control .4.5 works fine though.
     
  21. Offline

    Zaonhort

    Code:
    [SEVERE] Error occurred while enabling WeatherControl v0.8.2 (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:134)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:112)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:232)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:219)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:146)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    I too, am getting this error just to confirm.
     
  22. Offline

    Trevor Bradley

    I've just set this up fresh on an 819 server with Multiverse... The weather seems to be shared identically in different worlds, even though it's enabled on one or disabled on another.

    I have two worlds in NORMAL mode.. alpha and gamma... If it starts raining on alpha, and weather control says a storm has started on alpha, it also rains in gamma at the exact same time... and the rain stops at the exact same time. Any ideas what I'm screwing up on multiworld? I haven't changed config.yml, but I don't see how it's supposed to be configured.

    EDIT: I am just typing "rl" at the console instead of restarting... I wonder if that has anything to do with it.

    EDIT2: Some more info, I think this is when interval enable: true is set. Waiting with it set to false to see if weather shows up.
     
  23. Offline

    xZise

    Okay, I changed the computer the server is running on, and I also now get the error message?!

    Fabian
     
  24. Offline

    hugonoob

    mee toooo
     
  25. Offline

    Masterflapdrol

    ThankSSSSSSSSsssssssss... [creeper] (i had some electric creeper issues :p) [tnt] BOOM. ;)
     
  26. Offline

    halvors

    :D
     
  27. Offline

    ValBGaming

    No real need to post the error message again -- But the error everyone is getting on start up... I am also getting it... For now I've just resorted to putting the .jar in my "Broken Plugins" folder... :'(
     
  28. Offline

    hugonoob

    can you fix it pls?
    [​IMG]

    Sorry for Double Post but i find the problem
    you can customize CommandBook and the weather from CommandBook block this Plugin
    sorry for bad English

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

    bk1138

    I get this also. Had to disable your plugin. If I right click a door to open it (with any item in my hand) or to fire a bow or even click to dig a block I get a "Lightning is Disabled" chat message for every click. I DO have it disabled, but I am not holding any kind of wand. Could it be related to the Null Pointer exception -- Other folks having the same problem?

    Once I disable WC, the messages go away and everything else is working fine.

    CB 818, WC 0.8.2
    (Essentials 2.3, Wormhole X-Treme 0.854, Tombstone 1.2.9, Tomb 0.5.6, AppleTree 0.5)
     
  30. Offline

    halvors

    WeatherControl 0.8.3 released.

    It fixed the comprehensive reported bug.

    Sorry for late fix.

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

    TheTallest

    Getting the following error also. WC still seems to work oddly
    CB 823
    WC .0.8.3
    Error is as follows
    Code:
    13:20:42 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'wc' in plugin WeatherControl v0.8.3
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:128)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:281)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:718)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:684)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:677)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:217)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:399)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NullPointerException
        at com.halvors.WeahterControl.command.WeatherControlCommandExecutor.onCommand(WeatherControlCommandExecutor.java:116)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    
     

Share This Page