AutoRelog: Allow any kick message

Set ignorekickmessage=true in config
See issues #880 #921
This commit is contained in:
ORelio 2020-04-02 18:19:37 +02:00
parent dbe02c063c
commit c5b0f447c9
5 changed files with 41 additions and 15 deletions

View file

@ -572,6 +572,8 @@ namespace MinecraftClient
/// <param name="delaySeconds">Optional delay, in seconds, before restarting</param>
protected void ReconnectToTheServer(int ExtraAttempts = 3, int delaySeconds = 0)
{
if (Settings.DebugMessages)
ConsoleIO.WriteLogLine(String.Format("[{0}] Disconnecting and Reconnecting to the Server", this.GetType().Name));
McTcpClient.ReconnectionAttemptsLeft = ExtraAttempts;
Program.Restart(delaySeconds);
}