summaryrefslogblamecommitdiffstats
path: root/MCServer/Plugins/Core/weather.lua
blob: 49cbaa079383c5836a7735dfbbf9fdfa2c21e082 (plain) (tree)
1
2
3
4
5
6
7
8
9
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