1
0
forked from MTSR/jail

add "tp" privs by chatcommand "release"

This commit is contained in:
Vitaliy Olkhin 2024-02-26 13:28:25 +05:00 committed by Koldun
parent 6d890a00c5
commit 3dd901f850
Signed by: Koldun
GPG Key ID: 53DE683337F5D25F

View File

@ -64,7 +64,8 @@ jail.release = function(self_name, id_player)
interact = true, interact = true,
shout = true, shout = true,
home = true, home = true,
spawn = true spawn = true,
tp = true
}) })
table.remove(prisoners_list, id) table.remove(prisoners_list, id)
end end
@ -130,7 +131,6 @@ minetest.register_chatcommand("jailb_on", {
}, },
func = function(name, del_node) func = function(name, del_node)
minetest.set_node(jail.jailpos, { name = "jail:borders" }) minetest.set_node(jail.jailpos, { name = "jail:borders" })
return true, 'Border display' return true, 'Border display'
end end
}) })