diff --git a/MinecraftClient/Scripting/ChatBot.cs b/MinecraftClient/Scripting/ChatBot.cs index b8f21e35..f03e92e2 100644 --- a/MinecraftClient/Scripting/ChatBot.cs +++ b/MinecraftClient/Scripting/ChatBot.cs @@ -1020,11 +1020,11 @@ namespace MinecraftClient.Scripting } /// - /// Disconnect from the server and restart the program - /// It will unload and reload all the bots and then reconnect to the server + /// Disconnect from the server and reconnect to the current server session + /// It will unload and reload all bots and then reconnect using existing settings /// /// In case of failure, maximum extra attempts before aborting - /// Optional delay, in seconds, before restarting + /// Optional delay, in seconds, before reconnecting protected void ReconnectToTheServer(int ExtraAttempts = 3, int delaySeconds = 0, bool keepAccountAndServerSettings = false) { if (Config.Logging.DebugMessages) @@ -1033,7 +1033,7 @@ namespace MinecraftClient.Scripting ConsoleIO.WriteLogLine(string.Format(Translations.chatbot_reconnect, botName)); } McClient.ReconnectionAttemptsLeft = ExtraAttempts; - Program.Restart(delaySeconds, keepAccountAndServerSettings); + Program.Reconnect(delaySeconds); } ///