forked from Mirrorlandia_minetest/minetest
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
|
if param == "" then
|
||||||
param = name
|
param = name
|
||||||
else
|
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.")
|
minetest.chat_send_player(name, "Privileges of "..param.." are hidden from you.")
|
||||||
end
|
return
|
||||||
|
end]]
|
||||||
end
|
end
|
||||||
minetest.chat_send_player(name, "Privileges of "..param..": "..minetest.privs_to_string(minetest.get_player_privs(param), ' '))
|
minetest.chat_send_player(name, "Privileges of "..param..": "..minetest.privs_to_string(minetest.get_player_privs(param), ' '))
|
||||||
end,
|
end,
|
||||||
|
Loading…
Reference in New Issue
Block a user