Does anyone know how i can find the messages of players who fail to join due to not whitelisted, connection error, or other and send it in chat also if someone leaves then detect the reason if it isn't themselves i want to know if its timed out, too much packets or other without checking console
So the idea is
i have no clue how to do anything like this and i need at least a start on how to do this. this code is not real, but it should explain what im looking for in detail
So the idea is
Code:
on connect
if player fails to join
find players fail to join message
send "%player% tried to join but could not join "Failed join reason/message" to op/staff
also
on disconnect
if player did not leave to themselves
find players disconnect reason
if disconnect reason has "kick" "ban"
cancel event
send "%player% probably did not mean to leave "Disconnect reason"
i have no clue how to do anything like this and i need at least a start on how to do this. this code is not real, but it should explain what im looking for in detail