From 983d87e44356c4cfc8f8908ec365006323a4dbe0 Mon Sep 17 00:00:00 2001 From: Alexander Harkness Date: Sat, 27 Jul 2013 16:24:03 +0100 Subject: Added correct core plugin --- MCServer/Plugins/Core/weather.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 MCServer/Plugins/Core/weather.lua (limited to 'MCServer/Plugins/Core/weather.lua') diff --git a/MCServer/Plugins/Core/weather.lua b/MCServer/Plugins/Core/weather.lua new file mode 100644 index 000000000..7176e544e --- /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 -- cgit v1.2.3