mirror of
https://gitlab.com/rautars/weather_pack.git
synced 2024-11-14 06:10:21 +01:00
16 lines
368 B
Lua
16 lines
368 B
Lua
|
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 = param
|
||
|
save_weather()
|
||
|
end
|
||
|
})
|