NoRain
This is a very VERY basic plugin to simply turn off rain on your server. I made it after my players demanded it and the only one I could find was out of date and inactive.
Features
- No Rain
- No lag from rain... because there's no rain
- No config
- Did I mention No Rain?
Commands
/norain : Get the rain status in the current world (not available via the console)
/norain [world] : Get the rain status in the specified world
/norain [world] {on|off}: Set the rain status in the specified world (ON = no rain, OFF = rain allowed)
Permissions
norain.use : Can use the /norain commands (Ops get this by default)
Installation
- Put the JAR in you plugins folder
- Reload/Restart
- Enjoy never ending sun (except at night time)
Source Code
Head over to my GitHub page for the source code!
Support
Please make a ticket if you have any problems, that way it's easier to track for both you and I. :D
Donations
If you like this plugin (or any of my other plugins) and want me to continue putting hard work into maintaining this standard, PLEASE consider donating using the donate button in the top right corner. If nothing else, this will help me justify to my wife why I spend so much time staring at code! :)
Other Projects
Have a look at some of my Other Projects
Very usefull plugin! thank you! It never rains in lobby :D
Works but I get this: ERROR]: Could not pass event WeatherChangeEvent to NoRain v1.1.5 org.bukkit.event.EventException Please update!
Will this plugin be ported to Sponge?
Thanks a lot :)
Oh... it seems I've already used this before.
Can you plz update your plugin.
18.06 23:02:39 [Server] INFO ... 13 more 18.06 23:02:39 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:292) [spigot.jar:git-Spigot-1477] 18.06 23:02:39 [Server] INFO at java.lang.reflect.Method.invoke(Method.java:606) [?:1.7.0_55] 18.06 23:02:39 [Server] INFO at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [?:1.7.0_55] 18.06 23:02:39 [Server] INFO at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [?:1.7.0_55] 18.06 23:02:39 [Server] INFO at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [?:1.7.0_55] 18.06 23:02:39 [Server] INFO at me.ellbristow.norain.NoRain.onRainStart(NoRain.java:47) [?:?] 18.06 23:02:39 [Server] INFO Caused by: java.lang.NullPointerException 18.06 23:02:39 [Server] INFO at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628) [spigot.jar:git-Spigot-1477] 18.06 23:02:39 [Server] INFO at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:482) [spigot.jar:git-Spigot-1477] 18.06 23:02:39 [Server] INFO at net.minecraft.server.v1_7_R3.MinecraftServer.u(MinecraftServer.java:576) [spigot.jar:git-Spigot-1477] 18.06 23:02:39 [Server] INFO at net.minecraft.server.v1_7_R3.DedicatedServer.v(DedicatedServer.java:283) [spigot.jar:git-Spigot-1477] 18.06 23:02:39 [Server] INFO at net.minecraft.server.v1_7_R3.MinecraftServer.v(MinecraftServer.java:672) [spigot.jar:git-Spigot-1477] 18.06 23:02:39 [Server] INFO at net.minecraft.server.v1_7_R3.WorldServer.doTick(WorldServer.java:168) [spigot.jar:git-Spigot-1477] 18.06 23:02:39 [Server] INFO at net.minecraft.server.v1_7_R3.World.doTick(World.java:2057) [spigot.jar:git-Spigot-1477] 18.06 23:02:39 [Server] INFO at net.minecraft.server.v1_7_R3.WorldServer.o(WorldServer.java:967) [spigot.jar:git-Spigot-1477] 18.06 23:02:39 [Server] INFO at net.minecraft.server.v1_7_R3.World.o(World.java:2116) [spigot.jar:git-Spigot-1477] 18.06 23:02:39 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot.jar:git-Spigot-1477] 18.06 23:02:39 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot.jar:git-Spigot-1477] 18.06 23:02:39 [Server] INFO at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:30) [spigot.jar:git-Spigot-1477] 18.06 23:02:39 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [spigot.jar:git-Spigot-1477] 18.06 23:02:39 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:294) [spigot.jar:git-Spigot-1477] 18.06 23:02:39 [Server] INFO org.bukkit.event.EventException 18.06 23:02:39 [Server] ERROR Could not pass event WeatherChangeEvent to NoRain v1.1.2
If you have any problems please leave a ticket, that way it's easier for both you and I to track :D
NoRain has been tested and works with 1.7.9.
Plugin crashing in 1.7.2 craftbukkit version.
Hello, I post this in the dev-bukkit plugin in Portuguese?
So simple, yet so helpful! Thanks for this!
Works perfectly fine on my server :)
For anyone having problems, try turning the rain off before you disable the rain in your world.
I have tried it with Rain both ENABLED and DISABLED, both allow rain/snow. Seems the plugin is not working
Plugin installed, I run it on 'overworld', it reports 'Rain is DISABLED in current world', but I am watching it rain/snow
What am I doing wrong?
@ellbristow
I have 3 custom worlds generators, (Cleanroom Generator, SkylandsPlus +, and Dungeon Maze) But all in NORMAL. :(
I use CraftBukkit Beta Build (1.6.2-R0.1) :)
@yiyoek
I can't see what's causing this error! There is no reason why line 47 of the NoRain object would create an NPE.
The only thing I can think of is that you have a world that is changing it's weather state, but it's not a standard Minecraft world. Wetaher is normally generated in NORMAL worlds (ie not NETHER or END worlds). If you have a world that is not NORMAL that is generatign weather, this COULD create an NPE error.
Do you have a plugin that allows you to create non normal worlds with weather?
@martymeep
Look at the "Recent Files" Section
@yiyoek
Unusual... In a year and 3 months since the last release... this is the first time this has been reported! Which build of Bukkit are you using? I wonder if it has a bug that would cause this.
I will take a look to see if this is something that needs fixing or if it will go away by itself with another Bukkit build.
I love this plugin but I get this error:
12:30:11 p. m. [SEVERE] Could not pass event WeatherChangeEvent to NoRain v1.1.2 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at net.minecraft.server.v1_6_R2.World.o(World.java:1902) at net.minecraft.server.v1_6_R2.WorldServer.o(WorldServer.java:920) at net.minecraft.server.v1_6_R2.World.doTick(World.java:1852) at net.minecraft.server.v1_6_R2.WorldServer.doTick(WorldServer.java:162) at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:564) at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:226) at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:486) at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:419) at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582) Caused by: java.lang.NullPointerException at me.ellbristow.norain.NoRain.onRainStart(NoRain.java:47) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) ... 12 more
the plugin if it works, but cause lag from this Exception, :( an update to fix it?
@Anibaaal
ty :)
@zaino60
You can do /gamerule doDaylightCycle false. It's a native command that locks the time.