We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
/privs
1 parent 91250c1 commit c7d569bCopy full SHA for c7d569b
builtin/game/chatcommands.lua
@@ -147,11 +147,12 @@ core.register_chatcommand("help", {
147
core.register_chatcommand("privs", {
148
params = "<name>",
149
description = "print out privileges of player",
150
- func = function(name, param)
151
- param = (param ~= "" and param or name)
152
- return true, "Privileges of " .. param .. ": "
+ func = function(caller, param)
+ param = param:trim()
+ local name = (param ~= "" and param or caller)
153
+ return true, "Privileges of " .. name .. ": "
154
.. core.privs_to_string(
- core.get_player_privs(param), ' ')
155
+ core.get_player_privs(name), ' ')
156
end,
157
})
158
0 commit comments