diff options
author | madmaxoft <github@xoft.cz> | 2013-08-12 07:46:41 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-08-12 07:46:41 +0200 |
commit | 79ece8eb0db07d88e1f44239842b7ef44a33a2d4 (patch) | |
tree | 5e1d2b29b9f101557db1edf8650dc84fb73d5047 /MCServer/Plugins/Core | |
parent | Added cWorld:QueueSaveAllChunks() function for saving chunks asynchronously. (diff) | |
parent | Merge pull request #77 from tonibm19/patch-1 (diff) | |
download | cuberite-79ece8eb0db07d88e1f44239842b7ef44a33a2d4.tar cuberite-79ece8eb0db07d88e1f44239842b7ef44a33a2d4.tar.gz cuberite-79ece8eb0db07d88e1f44239842b7ef44a33a2d4.tar.bz2 cuberite-79ece8eb0db07d88e1f44239842b7ef44a33a2d4.tar.lz cuberite-79ece8eb0db07d88e1f44239842b7ef44a33a2d4.tar.xz cuberite-79ece8eb0db07d88e1f44239842b7ef44a33a2d4.tar.zst cuberite-79ece8eb0db07d88e1f44239842b7ef44a33a2d4.zip |
Diffstat (limited to 'MCServer/Plugins/Core')
-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 |