1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

[CSM] Add function to get player privileges (#5933)

* [CSM] Add function to get player privileges + move related help functions to common

* Added @Zeno- const
This commit is contained in:
red-001 2017-06-07 08:09:06 +01:00 committed by Loïc Blot
parent 6c55874417
commit c91a8c7061
7 changed files with 56 additions and 25 deletions

View file

@ -150,3 +150,9 @@ core.register_on_punchnode(function(pos, node)
return false
end)
core.register_chatcommand("privs", {
func = function(param)
return true, core.privs_to_string(minetest.get_privilege_list())
end,
})