0
0
Fork 0

Rename set_weather to weather command

This commit is contained in:
Wuzzy 2017-02-20 19:24:23 +01:00
parent 45e45e9c66
commit f1cfee9c78
1 changed files with 4 additions and 4 deletions

View File

@ -132,9 +132,9 @@ minetest.register_privilege("weather_manager", {
}) })
-- Weather command definition. Set -- Weather command definition. Set
minetest.register_chatcommand("set_weather", { minetest.register_chatcommand("weather", {
params = "<weather>", params = "none | rain | snow | thunder",
description = "Changes weather by given param, parameter none will remove weather.", description = "Changes the weather to the specified parameter.",
privs = {weather_manager = true}, privs = {weather_manager = true},
func = function(name, param) func = function(name, param)
if (param == "none") then if (param == "none") then