Privilege matrix
This commit is contained in:
parent
427f0cc331
commit
c33d1e9cb6
8
init.lua
8
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user