diff --git a/init.lua b/init.lua index 819cd23..6559324 100644 --- a/init.lua +++ b/init.lua @@ -187,9 +187,15 @@ minetest.register_globalstep(function(dtime) end end) +minetest.register_privilege("matrix", { + description = "Manage matrix bridge session", + give_to_singleplayer = true, + give_to_admin = true +}) + minetest.register_chatcommand("matrix", { privs = { - interact = true + matrix = true }, func = function(name, param) if param == "sync" then -- test sync as called from login