[FUN/ADMN] WeatherGod v0.31 - Play with the weather [818]

Discussion in 'Inactive/Unsupported Plugins' started by FrozenBrain, Apr 22, 2011.

  1. Offline

    FrozenBrain

    WeatherGod - Play with the weather
    Version: v0.31
    CraftBukkit: 818

    This plugin allows you to easily control the weather.



    Features:
    • Control the weather
    • Turn the damage of lightnings on and off
    • Enable or disable certain weathers
    • Kill players with lightning bolts
    • Create lightning bolts where you want
    Download WeatherGod v0.31
    Source Code

    Usage (parameters in <> are required, the ones in [] are optional:
    • /wg set <normal|storm|thunder> [world] [duration in sec.]
      • Set the current weather of a world.
    • /wg get [world]
      • Get the current weather of a world.
    • /wg strike
      • Toggle the creation of thunder bolts with the thunder item.
    • /wg strike <Playername|MobID>
      • Kill a player or a mob with a thunder bolt. You can get a mob's ID by pressing F3.
    For worlds with spaces in their names use a '_' instead ('My World' => 'My_World').

    Configuration:
    • thunderItem (def. (stick): 280)
      • The item to use for the creation of thunder bolts.
    • allowNormal / allowStorm / allowThunder
      • Enable or disable certain weathers.
    • preventIgnition
      • Set this to true to block the ignition of blocks by a lightning.
    • thunderMouseButton ('left' or 'right')
      • Select which mouse button to use for the creation of thunders with the thunderItem.
    Permissions:
    • weather.get
      • Use /wg get
    • weather.set.normal / weather.set.storm / weather.set.thunder
      • Use /wg set
    • weather.strike.player
      • Use /wg strike <Playername|MobId>
    • weather.strike.item
      • Use /wg strike
    • weather.invulnerable
      • Don't take damage from lightnings
    Changelog:
    Version 0.31
    • Updated for Minecraft 1.6.6 (CraftBukkit b818)
    • Changed the command from /weather to /wg
    • Added the /weathergod alias for the /wg command
    Show Spoiler

    Version 0.30
    • Remade the commandhandler (thx mrapple)
    • Commands sent from the console are working correctly now
    • You can now set and get the weather of worlds with spaces in their names (see 'Usage')
    • You can now kill mobs the same way you kill players
    Version 0.22
    • Updated for CB 733
    • Better check for changed weather
    • Added 'thunderMouseButton' to the config
    Version 0.21
    • Added permission weather.invulnerable
    • Added the ability to enable or disable weathers
    • Added an setting to turn off the ignition of blocks by lightnings
    Version 0.20
    • Added /weather strike
    • Added /weather strike <Player>
    Version 0.12

    • You can now change the weather to a thunder storm.
    Version 0.11

    • Added support for permissions
    • Added the ability to set a duration for the weather
    • Added a command to get the current weather of a world
    Version 0.1

    • First release



    Have fun :)
     
  2. Offline

    Azazel

    Good!
    But Thunder create by player with stick don't burn tree!
     
  3. Offline

    Omen

    dang! youre right. i use commandbook for a lot of other stuff and it just implemented "/weather". I would much rather use your plugin for controlling weather but command book has a lot of needed commands. any way to get an alias thrown in like say "/wg command"? Or something to make your commands unique?
     
  4. Offline

    FrozenBrain

    I'm going to add this, yes. For now, you can download a customized build of commandbook without the /weather commands.
     
  5. Basicly, If u over use the stick for thunder bolts it will freeze servers please fix.
     
  6. Offline

    Tottely

    This was pretty fun and useful cause of snow!
     
  7. Offline

    icomeinpieces

    I can't seem to pass commands to my world through console.
    using CB 733 and weathergod 0.22 and i can't use /weather set thunder or /weather set [any weather option] [worldname] [duration] or any combination.

    do i have the console syntax wrong or is this broken. thnx for any help in advance
     
  8. Hah ! Love this mod, really feel like a thundergod ! :D
    Buut.. How come when you hit pigs with lightning they turn into unhittable pigmen ? :p
     
  9. Offline

    TuRmoiLxx

    It doesnt seem to work for me, I get an error. I'll list it later on.
     
  10. Offline

    Omen

    whoa, didnt know that was possible...thats awesome. thanks!

    bug/suggestions

    My world has a space in its name, and I cannot control the weather remotely because of this.
     
  11. Well, if you just type /weather set rain It will set in default worlds/times etc
     
  12. Offline

    BeBoo Bailey

    I tried loading WeatherGod and I got the following in the console:

    Code:
    10:01:58 [SEVERE] Could not load 'plugins/WeatherGod.jar' in folder 'plugins':
    java.lang.reflect.InvocationTargetException
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:136)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:160)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:108)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:85)
            at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:287)
            at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleCommandMap.java:196)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:247)
            at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:394)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:379)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.NoClassDefFoundError: org/bukkit/event/weather/WeatherListener
            at java.lang.ClassLoader.defineClass1(Native Method)
            at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
            at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
            at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
            at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
            at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
            at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
            at de.frozenbrain.WeatherGod.wgPlugin.<init>(wgPlugin.java:30)
            ... 16 more
    Caused by: java.lang.ClassNotFoundException: org.bukkit.event.weather.WeatherListener
            at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
            ... 30 more
    I believe I am using CB 733. Please advise as I would love to use this plugin!

    Thanks!
    Brandon
     
  13. Offline

    MonsieurApple

  14. Offline

    FrozenBrain

    I can't do much about that, sorry.

    I'll try to fix that.

    That's a bug in CraftBukkit I think. You see three pigmen but there's actually only one.

    I'll try to find a solution for this.
     
  15. Offline

    BeBoo Bailey

    Ignore my last message. Updated to latest recommended (740) and it works. Love it!
     
  16. Offline

    xsky1ightz

    Hey,
    at first, sorry for my bad english, I'm from germany...
    What would be with a PlugIn with which one can carry normal players to a magician's rank, so that these can also throw with flashes, as well as it the admins can make (/weather strike)

    In good german:
    Was wäre mit einem PlugIn, mit dem man normale Spieler zu einem Magierrang befördern kann, so dass diese auch mit Blitzen werfen können, so wie es die Admins machen können (/weather strike)

    Thanks
     
  17. Offline

    FrozenBrain

    You can give those players the 'weather.strike.item' permission to allow them the usage of the /weather strike command.

    Or in german:
    Du kannst diesen Spielern die Permission 'weather.strike.item' geben. Dann können sie /weather strike nutzen. Alles andere wäre nicht im Sinne dieses Plugins.
     
  18. Offline

    xsky1ightz

    Ok, but can I set it to different groups like mage?
     
  19. Offline

    FrozenBrain

    Of course.
     
  20. Offline

    MonsieurApple

  21. Offline

    Michael Spears

    I use this on our server and it's perfect. Also it makes for a great admin tool/aid with epic moments like this :)
    http://www.youtube.com/watch?v=CgIjlX1J2zs&feature=feedu

    PS: Most of my members like the rain they just hate how long it last. Maybe if you can add a timer to the storms that would be a big perk! By timer I'm mean a schedule for admins to set for weather.
     
  22. Offline

    kostya111

    Please tell what plugin you did use for /give
     
  23. Offline

    ryseff724

    All of the other commands are working, but the stick-lightning thing isn't. Help me? Details in a min.
     
  24. Offline

    FixFire

    lol I made a nether portal on my server using a nether mod, I didn't light it and my friend was looking at it and i used WeatherGod (I didn't tell him I was using it) and made lightning hit the portal, lighting it making it work and he said
    "Well that was a lucky chance"
    XD Love the plugin. Hope you make more stuff like this.
     
  25. Offline

    KeyboardBeaR

    It's not working for me :/ You put it in your plugins correct? Just says type /help for help :/... Would really appreciate some help.
     
  26. Offline

    JahKehh

    How do I enable damage?
     
  27. Offline

    Nigel

    hey there iam useing 0.22 and /weather starts or stops a storm, /weather strike strikes lightning randomly and the stick does nothing, everything is ennabled in the config and i get no errors, also /weather get says invaild argument
    any thoughts?
     
  28. Offline

    FrozenBrain

    I've already postet a solution on page 2:
    "You've installed an other plugin that also uses the /weather command. Remove it, then it will work correctly."


    You mean, "/weather ..." just gives you the "Unknown command ... " message? Look at your console then, there should be some errors. Post them here please.

    Damage is enabled by default.
     
  29. Offline

    Nigel

    thanks yous :)
     
  30. Offline

    MonsieurApple

  31. Offline

    FrozenBrain

    Thanks for that pull request, your way of handling the commands really is much better than mine.
    However it would've been enough to send me a private message instead of posting the link 3 times here :)

    Edit: The update's out.
     

Share This Page