meteor-client icon indicating copy to clipboard operation
meteor-client copied to clipboard

[BUG] AutoLog: fake logout

Open Kelvinlby opened this issue 2 months ago • 2 comments

Describe the bug

The AutoLog module often get our client logged out, but the server still think we are connected. When connecting again, it shows "You've already joined". This was happening very often on 2b2t.org.

Steps to reproduce

  1. Login to 2b2t.org
  2. Switch on AutoLog
  3. Switch off "toggle off"
  4. Meet a situation to trigger AutoLog
  5. You get logged out successfully.
  6. Then login again instantly
  7. Keep staying in the same situation to trigger AutoLog
  8. Then fake logout: you seems logged out on client side, but when you tries to rejoin, server shows you've already joined!

I've died 2 times because of this fake logout bug.

Meteor Version

1.21.10-22

Minecraft Version

1.21.10

Operating System

Linux

Before submitting a bug report

  • [x] This bug wasn't already reported (I have searched bug reports on GitHub).

  • [x] This is a valid bug (I am able to reproduce this on the latest dev build).

Kelvinlby avatar Nov 05 '25 00:11 Kelvinlby

After examine the code, i find that original logout logic relies on simulating a server-to-client disconnect packet. I think we should use client side disconnection to guarantee true logout.

Kelvinlby avatar Nov 05 '25 00:11 Kelvinlby

Afaik this is a 2b2t-(or perhaps folia)-specific issue. It is easily solved by forcing the server to kick you instead of relying on a traditional disconnect. In most paid clients it is known as an "Illegal Disconnect". My stardust addon is designed for use on 2b2t, and adds this ability as an option to Meteor's built-in AutoLog module, among others.

0xTas avatar Nov 09 '25 01:11 0xTas