[INACTIVE][ADMN] MotherNature v1.2 - Control the weather, Umbrellas, Timed weather [711]

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

     
  1. Offline

    Yetanotherx

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    MotherNature - Control the weather:
    Version: v1.2

    So far, all the weather-controlling plugins have simply had commands for starting and stopping the weather. But what if you don't have any admins online and want rain? That's where this plugin comes in. Here, you set a time interval and duration, and it rains after a certain amount of time, every time! The process runs in a thread, so it is unaffected by lag. It also allows you to manually set rain, thunder, and even lighting! It also provides an umbrella, so you can stay dry even in the wettest weather! And, if you're feeling adventurous, holding gold boots and right-clicking a point anywhere in the world will strike a bolt of lightning!

    Download MotherNature v1.2
    Source Code

    Configuration:

    Running the program the first time will make a config.yml file in the MotherNature/ folder. Here are the config values you can set:

    • debug - Debug mode. Should leave as false
    • rain
      • interval - Seconds between rainstorms
      • duration - How long the rain should last, in seconds
    • thunder
      • interval - Seconds between thunderstorms
      • duration - How long the thunder should last, in seconds
    • wand - Item ID if the lightning wand. Defaults to gold boots.
    Usage:

    • /mn help - Shows a help message
    • /mn version - Shows the version
    • /mn reload - Reloads the config
    • /mn rain - Starts a rainstorm
    • /mn thunder - Starts a thunderstorm
    • /mn lightning player - Strikes lightning down on a player
    • /mn sun - Makes the day sunny again
    • /mn umbrella - Holds an umbrella over your head
    In addition to the commands, holding gold boots (if you have permissions) and right-clicking will strike lightning on the block that you click, even if you're far away from it.

    Permissions:

    MotherNature works best with either Permissions or GroupManager installed, but they are not required. Here is a list of permissions you can give them.

    • "mothernature.command.help" - Use "/mn help"
    • "mothernature.command.version" - Use "/mn version"
    • "mothernature.command.reload" - Use "/mn reload"
    • "mothernature.command.rain" - Use "/mn rain"
    • "mothernature.command.thunder" - Use "/mn thunder"
    • "mothernature.command.lightning" - Use "/mn lightning"
    • "mothernature.command.sun" - Use "/mn sun"
    • "mothernature.command.umbrella" - Use "/mn umbrella"
    • "mothernature.wand" - Use the lightning wand
    Changelog:

    Version 1.2
    • General fixes
    • Umbrella added

    Version 1.1
    • Add the rain, thunder, lightning, sun commands
    • Add the lightning wand.
    Version 1.0
    • Releasing MotherNature
    DaEgo, smegmabob, Juze and 1 other person like this.
  2.  
  3. Offline

    Polly

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Hello.

    I noticed that the thunder config settings do not work as you would expect it to work. So I looked into the source code and found something that could be a bug (I'm not familiar with minecraft coding style).

    The thunder variables are set calling mothernature.rain. Shouldn't it be mothernature.thunder?

    Code:
    private static void setSettings() {
            debugMode = config.getBoolean("mothernature.debug", false);
    
            rainInterval = config.getInt("mothernature.rain.interval", rainInterval);
            rainLength = config.getInt("mothernature.rain.duration", rainLength);
            thunderInterval = config.getInt("mothernature.rain.interval", thunderInterval);
            thunderLength = config.getInt("mothernature.rain.duration", thunderLength);
            lightningWand = config.getInt("mothernature.wand", lightningWand);
        }
    
    
  4. Offline

    Mikor

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Polly is correct. Code should be updated to state:

    Code:
    private static void setSettings() {
            debugMode = config.getBoolean("mothernature.debug", false);
    
            rainInterval = config.getInt("mothernature.rain.interval", rainInterval);
            rainLength = config.getInt("mothernature.rain.duration", rainLength);
            thunderInterval = config.getInt("mothernature.thunder.interval", thunderInterval);
            thunderLength = config.getInt("mothernature.thunder.duration", thunderLength);
            lightningWand = config.getInt("mothernature.wand", lightningWand);
        }
    
  5. Offline

    HaloLegendz

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Mine Won't Work It Say Internal Server Error HELP!
  6. Offline

    MacG32

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Definitely like this plugin. Thank you Yetanotherx. :) I have it set rain every 99999999 seconds for 1 second. Keeps the sky sunny all day. :D
  7. Offline

    TewDIE

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME

    I think worldguard can stop weather. update the config
  8. Offline

    smegmabob

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I have an issue lately that I'm not certain is even connected to your mod, this is just the only thing I could think of atm:

    We (my friends and I) started a server not too long ago that had some sporadic snow about. It even had instances of thundersnow (awesome btw) and rain/snow biomes next to one another (probably caused the aforementioned thundersnow) . Since then however it's as if the entire town area we built upon, which was mostly snow-free, has since become riddled with sporadic snowfall to the point of it looking like someone sneezed.

    If this isn't caused by your mod, I apologize.

    Thanks!

    :)
  9. Offline

    revfeuerfrei

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Couple of suggestions.

    First : Can we get the weather randomized a bit? Right now I go in and edit the config once in a while to change things up.

    Second : Make the umbrella out of glass, I tested this last night, and could farm wood planks for days, and get glowdust from the the stone, in a world where glowstone / dust is hard to come by, giving players the umbrella would make it trivial. Might be easier to just go glass, instead of making it nodrop someway.
  10. Offline

    thecrazyman3565

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    hey um we have a problome.when i type the rain
    command.it snows.and i hate.because now my world is full of snow and its very ugly.and i went
    into a area with no snow at all.it still snowed. PLEASE HELP!!!!!
  11. Offline

    anon

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    So...there is this thundertower plugin and it catches natural lightnings on a defined area of the tower. The problem is, if the lightning is generated by the thunder tool of this plugin, it just ignores the tower.

    Any way you guys could make any kind of partnership, where you could make a way for the lighnings of this plugin to not ignore the tower, provide the author of thundertower a way to catch the manually generated lightnings or integrate it inside this plugin?

    Anything that could help a bit would really be apreciated.
  12. Offline

    LastShenanigan

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Since uninstalling this mod we haven't had any weather on our server at all, any input as to what might cause this?
  13. Offline

    Yetanotherx

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I really wish this hadn't become as popular as it did. It really was an experimental plugin that snowballed out of control. If another developer wants to take the reins of this plugin, PM me your Github account and I'll give you permissions. Otherwise, consider this plugin unsupported.
  14. Offline

    4am

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Plugins have no control over where it rains or snows. It's based on your map - and the biomes aren't stored in the map data, they're generated based on the world seed. If it snows in a particular spot on your map it will always snow in a particular spot on that map, the only way to change that is to get a new map
  15. Offline

    Kartus

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    probably it's possible: http://forums.bukkit.org/threads/me...ltiworld-support-740.15183/page-4#post-276869
  16. Offline

    Schlumpfpirat

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Why is it inactive?
  17. Offline

    4am

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    because

    3 posts up from yours.
    Schlumpfpirat likes this.
  18. Offline

    MacG32

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Works perfect with CB #815.
  19. Offline

    Neero

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    818 too, I'm only using interval for rain tho :)
  20. Offline

    Masterflapdrol

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    dear
    Yetanotherx

    why dont it work on essentails?
    please fix and/or help me.
  21. Offline

    MacG32

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Still working good with CB #897. ;)
  22. Offline

    dandaman1001

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I am an admin on my server and when I try to use this plugin, it says that I "don't have permission" to do so. I can't seem to give myself permission with group manager. Help?
  23. Offline

    blakewy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    THIS IS EXACTLY WHAT I NEEDED but it's not in craftbukkituptodate. Can you please add it to craftbukkituptodate at dev.bukkit.org?
  24. Offline

    DaEgo

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    works fine on CB 1531

    is it possible to turn off the log info`s ?
    "Server is now raining."
    "Server is no longer raining."
    "Server is now thundering."
    "Server is no longer thundering."
    MotherNatureThread.class
  25. Offline

    wolnavi

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    can you update this please?
  26. Offline

    DaEgo

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    update for what ?!
    still works and no errors :cool:

    man nur idioten oder wat ey
  27. Offline

    DaEgo

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    This Plugin is not compatible with newest update
    CB 1943 (http://dl.bukkit.org/downloads/craftbukkit) is the last version it works with plugin
    please update
    thx

    Code:
    Error occurred while enabling MotherNature v1.2 (Is it up to date?)
    java.lang.NoClassDefFoundError: org/bukkit/util/config/Configuration
        at yetanotherx.bukkitplugin.MotherNature.MotherNatureSettings.load(MotherNatureSettings.java:40)
        at yetanotherx.bukkitplugin.MotherNature.MotherNature.onEnable(MotherNature.java:56)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:215)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:343)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:364)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:221)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:204)
        at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:357)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:344)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:175)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:408)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    Caused by: java.lang.ClassNotFoundException: org.bukkit.util.config.Configuration
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 12 more
    

    and

    Code:
    Error occurred while disabling MotherNature v1.2 (Is it up to date?)
    java.lang.NullPointerException
        at yetanotherx.bukkitplugin.MotherNature.MotherNature.onDisable(MotherNature.java:38)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217)
        at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:369)
        at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:382)
        at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:375)
        at org.bukkit.craftbukkit.CraftServer.disablePlugins(CraftServer.java:216)
        at net.minecraft.server.MinecraftServer.stop(MinecraftServer.java:385)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:465)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    

    This post has been edited 1 time. It was last edited by DaEgo Feb 21, 2012.
  28. Offline

    DaEgo

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  29. Offline

    triptechrepair

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Hello im new to this bukkit server stuff i need some help installing this plugin to my bukkit server. Im running the 4.1 version of bukkit server

Share This Page