From e93ae18fa3b779ce1bf5f311ee2e6e3aa72270e3 Mon Sep 17 00:00:00 2001
From: Somersault <130008175+Somersault41@users.noreply.github.com>
Date: Mon, 29 Jun 2026 05:35:46 +0300
Subject: [PATCH] Update ChatBot.cs
---
MinecraftClient/Scripting/ChatBot.cs | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
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);
}
///