aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de
diff options
context:
space:
mode:
authorTorui <44932079+ToruiDev@users.noreply.github.com>2022-05-07 12:22:47 +0200
committerGitHub <noreply@github.com>2022-05-07 12:22:47 +0200
commit176abc9c9ab1004e99417b11e91d6c3f21bd7f69 (patch)
treecf8c3bfec90bc7f009fb47c21eeb20df09b661a8 /src/main/java/de
parenta60548fe27208faca660d379d15a48681f76c401 (diff)
parent2cf08b0aea5820fcb8591afd78c4cecc29cd4430 (diff)
downloadCOFL-176abc9c9ab1004e99417b11e91d6c3f21bd7f69.tar.gz
COFL-176abc9c9ab1004e99417b11e91d6c3f21bd7f69.tar.bz2
COFL-176abc9c9ab1004e99417b11e91d6c3f21bd7f69.zip
Merge pull request #57 from HackedOS/main
Fix multiple connections when using hotkeys
Diffstat (limited to 'src/main/java/de')
-rw-r--r--src/main/java/de/torui/coflsky/CoflSkyCommand.java1
1 files changed, 1 insertions, 0 deletions
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);
}