Posted March 20, 20169 yr Pretty simple, I'd just like a way to automatically log into the server if I've been kicked.
March 20, 20169 yr Author 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?
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.