aboutsummaryrefslogtreecommitdiff
path: root/clientmods
diff options
context:
space:
mode:
authorred-001 <red-001@outlook.ie>2017-06-07 08:09:06 +0100
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-06-07 09:09:06 +0200
commitc91a8c7061c83a33cca929859ea811afb985ac0a (patch)
tree28d90cc8f57d35eedb2d25ffd6456ffddb80adf1 /clientmods
parent6c558744179b52607d552d28bf6cc6a4e49a2a14 (diff)
downloadminetest-c91a8c7061c83a33cca929859ea811afb985ac0a.tar.gz
minetest-c91a8c7061c83a33cca929859ea811afb985ac0a.tar.bz2
minetest-c91a8c7061c83a33cca929859ea811afb985ac0a.zip
[CSM] Add function to get player privileges (#5933)
* [CSM] Add function to get player privileges + move related help functions to common * Added @Zeno- const
Diffstat (limited to 'clientmods')
-rw-r--r--clientmods/preview/init.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/clientmods/preview/init.lua b/clientmods/preview/init.lua
index f3992612a..073ea11db 100644
--- a/clientmods/preview/init.lua
+++ b/clientmods/preview/init.lua
@@ -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,
+})
+