summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Harkness <bearbin@gmail.com>2013-08-11 20:43:26 +0200
committerAlexander Harkness <bearbin@gmail.com>2013-08-11 20:44:41 +0200
commita9359086ef0d9324b9533aeb54b4008467e52d58 (patch)
tree807d8f3d522c27d3af352b18d478d5b18dbba8ed
parentAdded doxyComments for cIsThread. (diff)
downloadcuberite-a9359086ef0d9324b9533aeb54b4008467e52d58.tar
cuberite-a9359086ef0d9324b9533aeb54b4008467e52d58.tar.gz
cuberite-a9359086ef0d9324b9533aeb54b4008467e52d58.tar.bz2
cuberite-a9359086ef0d9324b9533aeb54b4008467e52d58.tar.lz
cuberite-a9359086ef0d9324b9533aeb54b4008467e52d58.tar.xz
cuberite-a9359086ef0d9324b9533aeb54b4008467e52d58.tar.zst
cuberite-a9359086ef0d9324b9533aeb54b4008467e52d58.zip
Diffstat (limited to '')
-rw-r--r--MCServer/Plugins/Core/weather.lua14
1 files changed, 13 insertions, 1 deletions
diff --git a/MCServer/Plugins/Core/weather.lua b/MCServer/Plugins/Core/weather.lua
index 220c2a5cb..4d33a7a11 100644
--- a/MCServer/Plugins/Core/weather.lua
+++ b/MCServer/Plugins/Core/weather.lua
@@ -15,7 +15,19 @@ function HandleWeatherCommand(Split, Player)
Player:GetWorld():SetWeather(2)
SendMessageSuccess( Player, "Thundery showers activate!")
end
-
+
return true
end
+
+function HandleDownfallCommand( Split, Player )
+ World = Player:GetWorld()
+ if World:GetWeather() == 0 then
+ World:SetWeather(1)
+ else
+ World:SetWeather(0)
+ end
+
+ SendMessageSuccess( Player, "Downfall Toggled")
+
+end