mods - governing - check moderators array before use it
This commit is contained in:
parent
ce2add8d5b
commit
bce03af128
@ -75,8 +75,10 @@ minetest.register_on_joinplayer(function(player)
|
|||||||
end
|
end
|
||||||
msgsys = "[governing] can't retrieve info, player '" .. name .. "' disappeared or seems craker"
|
msgsys = "[governing] can't retrieve info, player '" .. name .. "' disappeared or seems craker"
|
||||||
minetest.after(0.1, function()
|
minetest.after(0.1, function()
|
||||||
for namemd,_ in pairs(cheat.moderators) do
|
if cheat and cheat.moderators then
|
||||||
minetest.chat_send_player(namemd,msgsys);
|
for namemd,_ in pairs(cheat.moderators) do
|
||||||
|
minetest.chat_send_player(namemd,msgsys);
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
minetest.log("warning", msgsys)
|
minetest.log("warning", msgsys)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user