From 2cf08b0aea5820fcb8591afd78c4cecc29cd4430 Mon Sep 17 00:00:00 2001 From: HackedOS Date: Sat, 7 May 2022 15:46:10 +0530 Subject: Fix multiple connection when using hotkeys --- src/main/java/de/torui/coflsky/CoflSkyCommand.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/main/java/de/torui/coflsky/CoflSkyCommand.java b/src/main/java/de/torui/coflsky/CoflSkyCommand.java index 4ff5d5b..5b21274 100644 --- a/src/main/java/de/torui/coflsky/CoflSkyCommand.java +++ b/src/main/java/de/torui/coflsky/CoflSkyCommand.java @@ -178,6 +178,7 @@ public class CoflSkyCommand extends CommandBase { CoflSky.Wrapper.SendMessage(rc); } else { sender.addChatMessage(new ChatComponentText("CoflSky wasn't active.").setChatStyle(new ChatStyle().setColor(EnumChatFormatting.RED))); + CoflSky.Wrapper.stop(); CoflSky.Wrapper.startConnection(); CoflSky.Wrapper.SendMessage(rc); } -- cgit