Jump to content

[1.8.9] If kicked, log back into server


2Pi

Recommended Posts

Apart from this being a very dick move: the client cannot know why the server closed the connection. The default termination message for kicking is "Kicked by an operator.", but this can be changed using the kick command.

You can detect being disconnected using FMLNetworkEvent.ClientDisconnectionFromServerEvent. The disconnection message will be in event.manager.getExitMessage().

I didn't mean it like that, and I should have used a word besides "kicked'. I'm talking about if I'm AFKing on a server, and for some strange reason I log out of the server (eg being timed out, but the reason doesn't matter), I want to log back in to the server. What would I do to log me back in?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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