diff options
author | nielsbreu@gmail.com <nielsbreu@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-03-24 19:41:19 +0100 |
---|---|---|
committer | nielsbreu@gmail.com <nielsbreu@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-03-24 19:41:19 +0100 |
commit | aae46468c77f47a88664172ceb2c3d8bc2aa08a4 (patch) | |
tree | 57583468521b3e8ac9f8d497ab5ee495e53e5949 /MCServer/Plugins/Core/weather.lua | |
parent | LeakFinder: Fixed previous commit, housekeeping is now factored in properly in both "alloc" and "free". (diff) | |
download | cuberite-aae46468c77f47a88664172ceb2c3d8bc2aa08a4.tar cuberite-aae46468c77f47a88664172ceb2c3d8bc2aa08a4.tar.gz cuberite-aae46468c77f47a88664172ceb2c3d8bc2aa08a4.tar.bz2 cuberite-aae46468c77f47a88664172ceb2c3d8bc2aa08a4.tar.lz cuberite-aae46468c77f47a88664172ceb2c3d8bc2aa08a4.tar.xz cuberite-aae46468c77f47a88664172ceb2c3d8bc2aa08a4.tar.zst cuberite-aae46468c77f47a88664172ceb2c3d8bc2aa08a4.zip |
Diffstat (limited to '')
-rw-r--r-- | MCServer/Plugins/Core/weather.lua | 10 |
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 |