parent
1aaee5b30d
commit
a0635f6024
|
@ -97,6 +97,9 @@ core.register_chatcommand("privs", {
|
|||
func = function(caller, param)
|
||||
param = param:trim()
|
||||
local name = (param ~= "" and param or caller)
|
||||
if not core.player_exists(name) then
|
||||
return false, "Player " .. name .. " does not exist."
|
||||
end
|
||||
return true, "Privileges of " .. name .. ": "
|
||||
.. core.privs_to_string(
|
||||
core.get_player_privs(name), ' ')
|
||||
|
|
Loading…
Reference in New Issue