Fix bug in Report
This commit is contained in:
parent
8fdefa5e93
commit
dd3d47567e
1 changed files with 4 additions and 4 deletions
|
@ -19,10 +19,10 @@ minetest.register_chatcommand("report", {
|
||||||
-- Get comma separated list of online moderators and admins
|
-- Get comma separated list of online moderators and admins
|
||||||
local mods = {}
|
local mods = {}
|
||||||
for _, player in pairs(minetest.get_connected_players()) do
|
for _, player in pairs(minetest.get_connected_players()) do
|
||||||
local name = player:get_player_name()
|
local pname = player:get_player_name()
|
||||||
if minetest.check_player_privs(name, {kick = true, ban = true}) then
|
if minetest.check_player_privs(pname, {kick = true, ban = true}) then
|
||||||
table.insert(mods, name)
|
table.insert(mods, pname)
|
||||||
minetest.chat_send_player(name, "-!- " .. name .. " reported: " .. param)
|
minetest.chat_send_player(pname, "-!- " .. name .. " reported: " .. param)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue