mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +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
|
else
|
||||||
{
|
{
|
||||||
Console.WriteLine("Failed to ping this IP.");
|
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
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue