Lua:
function dadadada.onLogin(player)
local playerId = player:getId()
local playersOnline = Game.getPlayers()
for _, pid in pairs(playersOnline) do
local pip = getPlayerIp(pid)
if cid ~= pid and getPlayerIp(cid) == pip and not isInArray(config.ignoreIps, Game.convertIpToString(getPlayerIp(cid))) then
number = (number or 0) + 1
if number > 1 then
return false
end
end
end
if eventOnline[playerId] == nil then
eventOnline[playerId] = addEvent(addOnlineItem, 1000, playerId)
end
return true
end
I'm having a problem with the anti mc check even though I have 3 mc online the eventOnline is running