1
0
cuberite-2a/MCServer/Plugins/Core/weather.lua

10 lines
245 B
Lua
Raw Normal View History

2013-07-27 11:24:03 -04:00
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