[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

    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. im gonna try it ! (i need snow)
     
  3. Offline

    Crash

    EDIT : So many weather plugins. :p
     
    RobZ_SD likes this.
  4. Offline

    Shay Williams

    Sorry, but are those intervals for naturally occurring storms or only the ones we specify with /mn <weather> ?
     
  5. Offline

    CasioBeatz

    Dear Plugin developer :D

    U said,
    How can I deactivate permissions? and if its not possible, how I need to write to the world.yml for permissions?

    Thanks for help

    Remus
     
  6. Offline

    Yetanotherx

    It is for all storms. The plugin disables the naturally occurring storms, so the only storms that will appear are the ones that are initiated by this plugin.

    The permissions nodes are listed in the first post. If you don't use permissions, ops will automatically have access to all commands. Non-ops will only have access to /mn help and /mn reload.

    Yes... but MINE is better. :)

    It's actually specifying when you want the weather, it lets you send a lightning bolt to any point on the map, not just a player, and pretty soon, will have an umbrella. :)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
    thecrazyman3565 likes this.
  7. im using this its better then all the others i have checked i want naturally occuring storms and stuff so put that in the config or enable it
     
  8. Offline

    Imamoose

    i dont think the time/ delay thing works, its never rained at all and i have it set to rain alot of the time ie, rain duration 60 rain ever 2mins

    im running 609 or 709 (which ever is 1.5) i know its X09
     
  9. Offline

    Yetanotherx

    I'm sorry, lack of punctuation has left me confused about what you're saying. Are you saying you do use this plugin, or are you telling me to ask a config value for naturally occurring storms, or what?

    What does your config file say?

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

    OalaR

    Hi, your plugin is the best weather plugin here! :) But i have one question, every thunderbolt ( from thunder or even created with wand ) does not set wood etc. on fire. Dont u know how to fix that?
     
  11. Offline

    SectioN 8

    Plugin doesn't work for me, tells me I don't have the permissions to use it, but my other admin can use it just fine.
     
  12. Offline

    Sabinno

    PLEASE don't make this too complicated.
    Don't add umbrellas of all things!
    I like this plugin exactly as it is because of its simplicity.
    Can we keep it that way? ;)
    -Sabinno-
     
  13. Offline

    Yetanotherx

    Other than the umbrella, I really don't have any more additions that I can think of right now. It won't become too much more bloated, trust me. :)

    Granted, that's what Essentials said... and well....

    Which permissions system do you use?

    Strange, it was lighting trees on fire when I did it. Do you have WorldGuard or another plugin that blocks fire spread?

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

    Sabinno

    I just really hate features that aren't natural.
    I'm trying my hardest to make my server run EXACTLY like single player.
    But with some extra weather.
    The umbrella doesn't make sense either, no offense.
    -Sabinno-
     
  15. Offline

    sfxworks

    Is there any way to set a time for it? Or configure how often it pops up?
     
  16. Offline

    Juze

    Change your title a bit to [ADMN/MECH], I moved it to releases already though. :)
     
  17. Offline

    Anavrins

    Golden Boots in my hands, I feel like I'm Thor.
    Awesome plugin, the only issue is that rain doesn't extinguish fire made by lightning for some reason, causing several forest fire :/
     
  18. Offline

    SectioN 8

    Was Permissions 2.7, but I removed it and now the plugin works just fine.
     
  19. Offline

    GraphicalMe

    I get this error


    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.NullPointerException
    at yetanotherx.bukkitplugin.MotherNature.MotherNaturePermissions.has(MotherNaturePermissions.java:62)
    at yetanotherx.bukkitplugin.MotherNature.command.HelpCommand.onCommand(HelpCommand.java:26)
    at yetanotherx.bukkitplugin.MotherNature.MotherNatureCommand.onCommand(MotherNatureCommand.java:41)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 12 more
     
  20. Offline

    DeaGato

    Can you add the option to choose in-game the rain\thunderstorm duration?

    For example:

    /mn rain > default time
    /mn rain 20 > 20 seconds
     
    4am likes this.
  21. Offline

    LucidLethargy

    Is there a way to make the probability of storms or rain higher without it being 100% predictable? Seems almost soul-less to set it on a timer :p

    Oh also what about seasons? Mine craft time seasons even! It's all possible, but are you interested? Either way great work so far!
     
  22. Offline

    MrAllthat

    Deffinitely when its possible you should implement a simple calendar that overwrites biome types and allows diff precipitation in biomes.
    A few config options for season length and weather probability (weather should be a percent chance not on a timer).
     
  23. Offline

    thorpe_lawrence

    Sorry But My Bukkit Errors:

    11:02:17 [SEVERE] Exception in thread "mn_thread"
    11:02:17 [SEVERE] java.lang.NoSuchMethodError: org.bukkit.World.setStorm(Z)V
    11:02:17 [SEVERE] at yetanotherx.bukkitplugin.MotherNature.thread.MotherNa
    tureThread.run(MotherNatureThread.java:84)
    11:02:17 [SEVERE] at java.lang.Thread.run(Unknown Source)

    Any Help On This Matter Would Be Appriciated

    EDIT: Fixed :eek:

    RE-EDIT: Broken Again :mad:
     
  24. Offline

    Yuushi

    Multi-world support would be amazing. <3
     
    4am likes this.
  25. Offline

    MrAllthat

    Deffinitely when its possible you should implement a simple calendar that overwrites biome types and allows diff precipitation in biomes.
    A few config options for season length and weather probability (weather should be a percent chance not on a timer).
     
  26. Offline

    o0AzzA0o

    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
     
  27. Offline

    Jany95

    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^^
     
  28. Offline

    DeaGato

    Show me your file...
     
  29. 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.
  30. Offline

    m4a1psg1

    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
     

Share This Page