AMP icon indicating copy to clipboard operation
AMP copied to clipboard

Minecraft 26.3 "System chat: X joined/left the game" messages are misidentified as separate players (join/leave regex)

Open ExoAE opened this issue 2 months ago • 7 comments

Operating System

Debian 13

AMP Version and Build Date

AMP Release "Proteus" v2.8.0.6, built 23/09/2026 16:24

AMP Release Stream

Mainline

I confirm that

  • [x] I have searched for an existing bug report for this issue.
  • [x] I am using the latest available version of AMP.
  • [x] my operating system is up-to-date.

Intended Action

Create and run a Minecraft instance on version 26.3 (tested on both Vanilla and Purpur) and have a single player connect to the server.

Expected Behaviour

Only the actual connected player should be listed as an active user. With one real player connected, Active Users should show 1 (e.g. "1/20"), and the player list should contain a single entry with a valid UUID, Session ID, and IP Address.

Actual Behaviour

A phantom second "user" is created for every real player that joins. With a single real player connected, AMP shows Active Users as 2 instead of 1, and the player list contains two entries:

  • ExoAE (the real player)
  • System chat: ExoAE (phantom entry)

Inspecting the phantom entry via "User Information" shows no UUID, no Session ID, and no IP Address, confirming it is not a real connection — it appears to be a misparsed console log line rather than an actual player session.

This phantom entry is also picked up by Analytics under "Most Active Users," where it accumulates a session duration nearly identical to the real player's, skewing playtime statistics.

Additionally, using the vanilla Minecraft /team command to add a prefix to a player (e.g. /team modify prefix ...) causes a third, separate phantom user to appear in the player list on the right-hand side, seemingly logged under a completely different "username" derived from the prefixed chat output rather than the player's actual name. This suggests the underlying regex is broadly matching on chat/broadcast-style console lines in general, not just the "System chat: joined/left the game" messages specifically.

Confirmed via testing that this is a Minecraft version regression, not Purpur-specific:

Version Server Type Issue present?
26.2 Vanilla No
26.2 Purpur No
26.3 Vanilla Yes
26.3 Purpur Yes

Likely root cause: starting in Minecraft 26.3, the server logs an additional broadcast line for join/leave events prefixed with "System chat:", alongside the original line AMP already parses correctly. Example console output:

Join:

[20:19:11] [Server thread/INFO]: ExoAE [/192.168.178.100:63673]: logged in with entity id 3795 at ([minecraft:overworld]-29.01690915194054, 81.15760090177669, -17.467211794023775)
[20:19:11] [Server thread/INFO]: System chat: ExoAE joined the game

Leave:

[20:23:58] [Server thread/INFO]: ExoAE lost connection: Disconnected
[20:23:58] [Server thread/INFO]: System chat: ExoAE left the game

The first line in each pair is the existing, correctly-handled message. The second line ("System chat: joined/left the game") appears to also match AMP's join/leave regex and is incorrectly treated as a second, independent player session.

Reproduction

  1. Install AMP and create a new Minecraft instance (Vanilla or Purpur), version 26.3
  2. Start the instance
  3. Connect to the server with a single Minecraft client
  4. Open the AMP web panel and check the Active Users count / player list — a phantom "System chat: " entry appears alongside your real username
  5. Click the phantom entry to view "User Information" — UUID, Session ID, and IP Address are all empty, confirming it's not a real player
  6. Optionally: repeat the same steps on version 26.2 — the phantom entry does not appear, confirming this is a 26.3 regression

ExoAE avatar Sep 24 '26 20:09 ExoAE

+1 have the same thing happening on: 2.8.0.6 - 20260923.2

RickyRAV avatar Sep 27 '26 17:09 RickyRAV

+1 would be good to have the regex updated to exclude this new "user" log.

bkwar201 avatar Sep 28 '26 21:09 bkwar201

+1 have the same thing happening on: 2.8.0.6 - 20260923.2

This doesn't have anything to do with AMP besides how it reads the console messages. It is purely something new that was added in Minecraft 26.3 that has yet to be accounted for in the regex used to track players in AMP's minecraft template.

bkwar201 avatar Sep 28 '26 21:09 bkwar201

Same issue on Fabric 26.1.2 and Fabric 26.2

suerion avatar Sep 30 '26 16:09 suerion

@bkwar201 it is new and comes with the Update from AMP

suerion avatar Sep 30 '26 17:09 suerion

I can reproduce another player tracking issue on Fabric 26.1.2. When a player attempts to join, AMP detects the login and adds the player to the Active Users list. If the player does not successfully join, AMP does not remove that entry again. In my test, Elodaria attempted to join the server and AMP registered the login. She is not actually online, but AMP now permanently lists her as an active user. The stuck entry contains her username, UUID and Join Time, but the Session ID and IP Address are empty. So this seems to be another case where AMP's player/session tracking creates an active user entry but does not properly clear it when the login/join does not complete. This is on Minecraft 26.1.2 Fabric, so it is not limited to Minecraft 26.3.

Image

suerion avatar Sep 30 '26 17:09 suerion

This is caused by changes on the Minecraft side. I'll get it addressed in the next release.

IceOfWraith avatar Sep 30 '26 20:09 IceOfWraith