1
0
mirror of https://gitlab.com/rautars/weather_pack.git synced 2024-11-17 07:40:17 +01:00
weather_pack/weather/command.lua

16 lines
374 B
Lua
Raw Normal View History

2013-03-24 14:40:18 +01:00
minetest.register_privilege("weather", {
description = "Change the weather",
give_to_singleplayer = false
})
-- Set weather
minetest.register_chatcommand("setweather", {
params = "<weather>",
description = "Set weather to rain, snow or none", -- full description
privs = {weather = true},
func = function(name, param)
weather.state = param
2013-03-24 14:40:18 +01:00
save_weather()
end
})