mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Add 'Failed to ping this IP' kick message
- AutoRelog can relog when failed to ping the server IP
This commit is contained in:
parent
99e25982c9
commit
62731fc0b9
1 changed files with 6 additions and 1 deletions
|
|
@ -181,7 +181,12 @@ namespace MinecraftClient
|
|||
else
|
||||
{
|
||||
Console.WriteLine("Failed to ping this IP.");
|
||||
ReadLineReconnect();
|
||||
if (Settings.AutoRelog_Enabled)
|
||||
{
|
||||
Bots.AutoRelog bot = new Bots.AutoRelog(Settings.AutoRelog_Delay, Settings.AutoRelog_Retries);
|
||||
if (!bot.OnDisconnect(ChatBot.DisconnectReason.ConnectionLost, "Failed to ping this IP.")) { ReadLineReconnect(); }
|
||||
}
|
||||
else ReadLineReconnect();
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue