diff options
author | Alexander Harkness <bearbin@gmail.com> | 2013-08-11 20:43:26 +0200 |
---|---|---|
committer | Alexander Harkness <bearbin@gmail.com> | 2013-08-11 20:44:41 +0200 |
commit | a9359086ef0d9324b9533aeb54b4008467e52d58 (patch) | |
tree | 807d8f3d522c27d3af352b18d478d5b18dbba8ed | |
parent | Added doxyComments for cIsThread. (diff) | |
download | cuberite-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 |
-rw-r--r-- | MCServer/Plugins/Core/weather.lua | 14 |
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 |