[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)
    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

    o0AzzA0o

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Top quality TOOL.......... great for punishing greifers !!!!!!!!!

    feature request ........ toggle lightning on player so /mn lightning playername time having one stike say every 2 seconds :p

    i know im a big kid
  4. Offline

    Jany95

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    if i change somthing in the config it gives me this error after restarting the server:
    [SEVERE] Could not load 'plugins\MotherNature.jar' in folder 'plugins':
    mapping values are not allowed here
    in "<reader>", line 7, column 38:
    ... duration: 180 interval: 300 wand: 317
    ^

    at org.yaml.snakeyaml.scanner.ScannerImpl.fetchValue(ScannerImpl.java:745)
    at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:307)
    at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:183)
    at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:564)
    at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
    at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:228)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122)
    at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
    at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124)
    at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
    at org.bukkit.util.config.Configuration.load(Configuration.java:73)
    at org.bukkit.plugin.java.JavaPlugin.initialize(JavaPlugin.java:158)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:138)
    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 net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    the arrow should point at the : of interval but he don't want it here^^
  5. Offline

    DeaGato

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Show me your file...
  6. Offline

    LanToaster

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I would love if the Plugin wouldnt disable the Natural Weather. Maybe you can add it in the Config? Anything else sounds cool.
    4am and gilgatex like this.
  7. Offline

    m4a1psg1

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    when using /mn umbrella i got error

    2011-04-23 22:24:15 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'mn' in plugin MotherNature v1.2
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:255)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:650)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:613)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:607)
    at net.minecraft.server.Packet3Chat.a(SourceFile:36)
    at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:73)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.IllegalAccessError: tried to access field com.Android.magiccarpet.Carpet.currentBlock from class yetanotherx.bukkitplugin.MotherNature.command.UmbrellaCommand
    at yetanotherx.bukkitplugin.MotherNature.command.UmbrellaCommand.onCommand(UmbrellaCommand.java:50)
    at yetanotherx.bukkitplugin.MotherNature.MotherNatureCommand.onCommand(MotherNatureCommand.java:41)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 12 more
  8. Offline

    OalaR

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yes, i had WorldGuard but even if i remove all of my plugins ( except mn ), the fire does not spread...
  9. Offline

    Yetanotherx

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    That means that your config file has a syntax error. Read up on YAML syntax, as that is the formal.
  10. Offline

    Yetanotherx

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yeah, I think that may be a Vanilla issue. I have yet to confirm.
  11. Offline

    Yetanotherx

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Make sure you have version 709-711 of CraftBukkit.
  12. Offline

    Yetanotherx

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Ah, yes. it's not yet compatible with MagicCarpet at the point. I'll release a bug fix in the next version.
  13. Offline

    rockxz2135

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    what about adding a message for player only that says something like "the weather in your area is ....."
  14. Offline

    gilgatex

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    If I set thunder duration to 0 will it turn off thunder completely? I'm really looking for a plugin that just turns off thunder.

    Edit: Specifically, I want normal weather, just without the thunderstorms. I don't want lightning destroying my creations.
  15. Offline

    greekguy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    why does it say i dont have permision to use this command? I'm admin/op/server owner.. i dont have permisions as of yet, and im running craftbukkit 714?
  16. Offline

    Equivalant

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    i gave the thunder strike wand to a diamond sword and now we have one hell of an epic sword xD

    this plugin is great thx
    4am likes this.
  17. Offline

    Imamoose

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    i set mine to a gold sword, means u cant really hit anything with it not that thats really a nerf ya just spam click and everything dies
  18. Offline

    greekguy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    any idea why it wont work for me? saying i dont hve permission? 714 craftbukkit..
  19. Offline

    zomgazombiewaffle

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    sorry lol it was around 3am. i would like you to enable naturally occuring storms and rain, if that is possible. also may i ask what is debug??
  20. Offline

    Jordan_Dudgeon

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Wheres the Snow??
  21. Offline

    Jany95

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    first: everyone who posts: i want snow etc. if it is raining in tundra and taiga biomes it is snow, not rain. so please stop spammig it.
    second: i don't know where the syntax error in the config is i just changed the duration of the rain to 300 and then i tried it with 200 both don't want to work.
    ps: what number makes it rain the whole minecraft day?

    edit: tried it with 180 still the same, and wtf set it to default (120) and it says me this =(
  22. Offline

    Jany95

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    if anyone else has this problem: i just removed the space that was between the : and the 600 in the config, it stops spamming the error
  23. Offline

    o0AzzA0o

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    it snows in the areas that already have snow in them while its raining everywhere else....... i think
  24. Offline

    rmb938

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    The lightning turns pigs into pig zombies that you can't kill
  25. Offline

    thorpe_lawrence

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I Do Not Understand :'(

    I Know That I Have The Unstable Version Of Bukkit At:

    Found At Bukkit.org

    PLEASE HELP ME AS MY WOLVES DON'T LIKE IT [brickblock]:eek:[brickblock]
  26. Offline

    rmb938

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Oh can you also add a lightning frequency or something? So we can also control when lightning happens.
  27. Offline

    Protected

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    One copy of the config block for each world would be great, and also a setting to disable each type of control for each world (for example, there's a world where I want to control only the rain, a world where I want to control nothing, etc.)
  28. Offline

    Yetanotherx

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

    Yetanotherx

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    It only snows in snow biomes. That is not able to be controlled by Bukkit.
  30. Offline

    Yetanotherx

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Debug is not something you will need to mess with. It is just extra stuff in the console that does nothing except spam your console.
  31. Offline

    Yetanotherx

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Are you using the Permissions plugin?
  32. Offline

    zomgazombiewaffle

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    also i have found a bug. zombie pig men created by lightning cannot be killed or injured

Share This Page