Privilege matrix

This commit is contained in:
Pascal Engélibert 2022-01-29 23:34:41 +01:00
parent 427f0cc331
commit c33d1e9cb6
Signed by: tuxmain
GPG Key ID: 3504BC6D362F7DCA
1 changed files with 7 additions and 1 deletions

View File

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