GUI: Make /xban_gui only usable by players with ban priv.

This commit is contained in:
Diego Martínez 2016-10-20 10:24:44 -03:00
parent 49db5aa888
commit 320abd34de

View File

@ -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,