diff options
Diffstat (limited to '')
-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 |