Minecraft-Console-Client/MinecraftClient/ChatBots
copilot-swe-agent[bot] 8757533fb9
Fix Script bots accumulating on reconnect by unloading on disconnect
Script ChatBots were persisted in the static botsOnHold list across
reconnects. When ScriptScheduler triggered new scripts on login, the
old Script bots were still running, causing duplicate commands to be
sent simultaneously. This led to command spam and crashes.

Adding OnDisconnect to the Script ChatBot ensures scripts are removed
from the bots list before they can be saved to botsOnHold, preventing
accumulation of duplicate script instances on reconnect.
2026-06-05 06:29:43 +00:00
..
Alerts.cs Update Alert.cs (#2496) 2023-05-06 21:55:21 +08:00
AntiAFK.cs Formatted the code and removed logs from Auto Attack 2026-06-04 11:42:41 +02:00
AutoAttack.cs Formatted the code and removed logs from Auto Attack 2026-06-04 11:42:41 +02:00
AutoCraft.cs Modernize data carriers to records and add primary constructors 2026-03-24 01:31:17 +00:00
AutoDig.cs Fix AutoDig mining timing 2026-05-23 10:56:06 +02:00
AutoDrop.cs Run MCC at true 20 TPS 2026-03-23 14:29:04 +01:00
AutoEat.cs Implement command completion suggestions. 2022-12-06 15:50:17 +08:00
AutoFishing.cs feat(autofishing): add velocity and sound bite detection 2026-03-31 00:18:31 +02:00
AutoRelog.cs Fix AutoRelog retry accounting 2026-06-02 10:24:59 +02:00
AutoRespond.cs Modernize null-check patterns: use 'is null' and 'is not null' 2026-03-24 00:28:02 +00:00
ChatLog.cs Modernize lock object declarations from object to System.Threading.Lock 2026-03-24 00:15:21 +00:00
DiscordBridge.cs Add message aggregation and relay options for DiscordBridge 2026-03-29 19:53:50 +08:00
DiscordRpc.cs Modernize lock object declarations from object to System.Threading.Lock 2026-03-24 00:15:21 +00:00
Farmer.cs Fix legacy Farmer placement support 2026-05-03 15:46:16 +02:00
FileInputBot.cs Run MCC at true 20 TPS 2026-03-23 14:29:04 +01:00
FollowPlayer.cs Modernize null-check patterns: use 'is null' and 'is not null' 2026-03-24 00:28:02 +00:00
HangmanGame.cs Implement command completion suggestions. 2022-12-06 15:50:17 +08:00
ItemsCollector.cs Added slab handling for 1.20/.1 2023-06-23 16:25:18 +02:00
Mailer.cs Modernize lock object declarations from object to System.Threading.Lock 2026-03-24 00:15:21 +00:00
Map.cs Add TUI support for /map 2026-04-05 17:41:32 +08:00
McpServer.cs Refactored to share the new utilities between the MCP and the Chat Bot API 2026-04-03 19:06:43 +02:00
PlayerListLogger.cs Merge into master 2022-12-06 20:32:46 +08:00
RemoteControl.cs Implement command completion suggestions. 2022-12-06 15:50:17 +08:00
ReplayCapture.cs feat: modernize ReplayCapture 2026-05-04 11:49:44 +02:00
Script.cs Fix Script bots accumulating on reconnect by unloading on disconnect 2026-06-05 06:29:43 +00:00
ScriptScheduler.cs Run MCC at true 20 TPS 2026-03-23 14:29:04 +01:00
TelegramBridge.cs Formatted the code and removed logs from Auto Attack 2026-06-04 11:42:41 +02:00
TestBot.cs Implement command completion suggestions. 2022-12-06 15:50:17 +08:00