forked from minetest-mods/xban2
GUI: Make /xban_gui
only usable by players with ban
priv.
This commit is contained in:
parent
49db5aa888
commit
320abd34de
1
gui.lua
1
gui.lua
|
@ -128,6 +128,7 @@ end)
|
||||||
minetest.register_chatcommand("xban_gui", {
|
minetest.register_chatcommand("xban_gui", {
|
||||||
description = "Show XBan GUI",
|
description = "Show XBan GUI",
|
||||||
params = "",
|
params = "",
|
||||||
|
privs = { ban=true, },
|
||||||
func = function(name, params)
|
func = function(name, params)
|
||||||
minetest.show_formspec(name, FORMNAME, make_fs(name))
|
minetest.show_formspec(name, FORMNAME, make_fs(name))
|
||||||
end,
|
end,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user