summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/Core/weather.lua
blob: a03cad3ab432c231273b1a7c3d4fab4bbb6b991b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
function HandleDownfallCommand( Split, Player )
	World = Player:GetWorld()
	if World:GetWeather() == 0 then
		World:SetWeather(1)
	else
		World:SetWeather(0)
	end
	Player:SendMessage(cChatColor.Green .. "[INFO] " .. cChatColor.White .. "Downfall toggled")
	return true
end