mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
https://github.com/ORelio/Minecraft-Console-Client/issues/427: TriggerOnLogin doesn't work when /reco
This commit is contained in:
parent
803532ce42
commit
aaf1e8311b
1 changed files with 3 additions and 0 deletions
|
|
@ -354,6 +354,9 @@ namespace MinecraftClient
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void Disconnect()
|
public void Disconnect()
|
||||||
{
|
{
|
||||||
|
foreach (ChatBot bot in bots)
|
||||||
|
bot.OnDisconnect(ChatBot.DisconnectReason.ConnectionLost, "Disconnected");
|
||||||
|
|
||||||
botsOnHold.Clear();
|
botsOnHold.Clear();
|
||||||
botsOnHold.AddRange(bots);
|
botsOnHold.AddRange(bots);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue