We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a39930c commit fc1888cCopy full SHA for fc1888c
src/client/java/com/coflnet/CoflModClient.java
@@ -176,6 +176,13 @@ public void onInitializeClient() {
176
uploadedScoreboard = false;
177
});
178
179
+ ClientPlayConnectionEvents.DISCONNECT.register((handler, server) -> {
180
+ if (CoflCore.Wrapper.isRunning) {
181
+ System.out.println("Disconnected from server");
182
+ CoflCore.Wrapper.stop();
183
+ }
184
+ });
185
+
186
ClientCommandRegistrationCallback.EVENT.register((dispatcher, registryAccess) -> {
187
dispatcher.register(ClientCommandManager.literal("cofl")
188
.then(ClientCommandManager.argument("args", StringArgumentType.greedyString())
0 commit comments