mirror of
https://github.com/minetest/minetest.git
synced 2024-08-18 20:44:16 +02:00
Take out the "Privileges of foo are hidden from you." response of /privs
This commit is contained in:
parent
a35e4bdbda
commit
7a427c9070
@ -101,9 +101,10 @@ minetest.register_chatcommand("privs", {
|
||||
if param == "" then
|
||||
param = name
|
||||
else
|
||||
if not minetest.check_player_privs(name, {privs=true}) then
|
||||
--[[if not minetest.check_player_privs(name, {privs=true}) then
|
||||
minetest.chat_send_player(name, "Privileges of "..param.." are hidden from you.")
|
||||
end
|
||||
return
|
||||
end]]
|
||||
end
|
||||
minetest.chat_send_player(name, "Privileges of "..param..": "..minetest.privs_to_string(minetest.get_player_privs(param), ' '))
|
||||
end,
|
||||
|
Loading…
Reference in New Issue
Block a user