Failed Join/Connect messages Sent to online staff/players

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

AidenKing

New Member
Feb 5, 2022
5
0
1
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
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
 
Status
Not open for further replies.