Skip to content

Upload scoreboard on reconnect#55

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/upload-scoreboard-on-reconnect
Draft

Upload scoreboard on reconnect#55
Copilot wants to merge 2 commits intomainfrom
copilot/upload-scoreboard-on-reconnect

Conversation

Copy link
Copy Markdown

Copilot AI commented Mar 31, 2026

When reconnecting to Hypixel (e.g. switching servers/lobbies without a full disconnect), the JOIN event fires but autoStart() exits early because CoflCore.Wrapper.isRunning is already true, leaving the backend with a stale/empty scoreboard and tab list.

Changes

  • ClientPlayConnectionEvents.JOIN handler: split the existing autoStart() call into two paths based on wrapper state:
    • Wrapper not runningautoStart() as before (starts wrapper + schedules upload)
    • Wrapper already running (reconnect) → directly schedules a 5-second delayed uploadScoreboard() + uploadTabList(), matching the same timing used in autoStart()
if (CoflCore.Wrapper != null && CoflCore.Wrapper.isRunning) {
    Thread.startVirtualThread(() -> {
        Thread.sleep(5000);
        if (!CoflCore.Wrapper.isRunning) return;
        uploadScoreboard();
        uploadTabList();
    });
} else {
    autoStart();
}

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • maven.fabricmc.net
    • Triggering command: /usr/lib/jvm/temurin-25-jdk-amd64/bin/java /usr/lib/jvm/temurin-25-jdk-amd64/bin/java --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED --add-opens=java.xml/javax.xml.namespace=ALL-UNNAMED --add-opens=java.base/java.time=ALL-UNNAMED --enable-native-access=ALL-UNNAMED -Xmx1G -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI linked an issue Mar 31, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Add functionality to upload scoreboard on reconnect Upload scoreboard on reconnect Mar 31, 2026
Copilot AI requested a review from Ekwav March 31, 2026 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upload scoreboard on reconnect

2 participants