mirror of
https://github.com/Splizard/minetest-mod-snow.git
synced 2024-11-16 14:50:18 +01:00
only those with server privs can use menu.
This commit is contained in:
parent
2a3c61b2e3
commit
ddfc5102a1
1
util.lua
1
util.lua
|
@ -148,6 +148,7 @@ end)
|
||||||
|
|
||||||
minetest.register_chatcommand("snow", {
|
minetest.register_chatcommand("snow", {
|
||||||
description = "Show a menu for various actions",
|
description = "Show a menu for various actions",
|
||||||
|
privs = {server=true},
|
||||||
func = function(name, param)
|
func = function(name, param)
|
||||||
minetest.show_formspec(name, "snow:menu", get_formspec())
|
minetest.show_formspec(name, "snow:menu", get_formspec())
|
||||||
end,
|
end,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user