1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Failed Join/Connect messages Sent to online staff/players

Discussion in 'Skript' started by AidenKing, Apr 14, 2022.

Thread Status:
Not open for further replies.
  1. AidenKing

    AidenKing New Member

    Joined:
    Feb 5, 2022
    Messages:
    5
    Likes Received:
    0
    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 (Text):
    1. on connect
    2. if player fails to join
    3. find players fail to join message
    4. send "%player% tried to join but could not join "Failed join reason/message" to op/staff
    5.  
    6. also
    7.  
    8. on disconnect
    9. if player did not leave to themselves
    10. find players disconnect reason
    11. if disconnect reason has "kick" "ban"
    12. cancel event
    13. 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
     
  2. BatDev0

    BatDev0 Member

    Joined:
    May 16, 2020
    Messages:
    25
    Likes Received:
    2
    This isn't possible due to minecraft not giving "disconnect reasons" to servers.
     
  3. AidenKing

    AidenKing New Member

    Joined:
    Feb 5, 2022
    Messages:
    5
    Likes Received:
    0
    its in console lmao PLUS other servers have done it
     
    #3 AidenKing, Apr 17, 2022
    Last edited: Apr 17, 2022
  4. Minecoll_YT

    Supporter Forums Helper

    Joined:
    Dec 2, 2018
    Messages:
    650
    Likes Received:
    39
Thread Status:
Not open for further replies.

Share This Page

Loading...