summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/Core/weather.lua
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--MCServer/Plugins/Core/weather.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/MCServer/Plugins/Core/weather.lua b/MCServer/Plugins/Core/weather.lua
new file mode 100644
index 000000000..49cbaa079
--- /dev/null
+++ b/MCServer/Plugins/Core/weather.lua
@@ -0,0 +1,10 @@
+function HandleToggleDownfallCommand( Split, Player )
+ World = Player:GetWorld()
+ if World:GetWeather() == 0 then
+ World:SetWeather(1)
+ else
+ World:SetWeather(0)
+ end
+ Player:SendMessage( cChatColor.Green .. "Weather toggled")
+ return true
+end \ No newline at end of file