Jump to content

[1.12] How to get the reason of a disconnection


Recommended Posts

I'm using the ClientDisconnectionFromServerEvent event to listen for any disconnection. I am only interested in getting disconnections that happened due to errors (time out, etc.).

This listens for every disconnection including the ones triggered by the player.

How can I either only catch the errors that are thrown, or check for the reason?


Thank you.

Link to comment
Share on other sites

This topic is now closed to further replies.


  • Create New...

Important Information

By using this site, you agree to our Terms of Use.