BlueMap icon indicating copy to clipboard operation
BlueMap copied to clipboard

Unable to properly handle fake players who go offline

Open mcbianxiao opened this issue 1 year ago • 3 comments

What i did / Steps to reproduce

I used a fake player with a carpet mod, but when the fake player goes offline, bluemap will think that the fake player is still online.
The easiset to reproduce(issue command in order):

  • /player spawn
  • /player kill

In addition, this issue can occur after a fake player dies in other ways.

Expected result

Fake players will disappear from the map after going offline just like normal players.

Actual result

The fake player will not disappear from the map when they go offline, and the bluemap will think that the fake player is still online.

Context

BlueMap Version:
BlueMap-5.3-fabric.jar

OS:
Windows Server 2016
Platform:
Fabric 0.16.0
Minecraft version:
1.21


Using Microsoft Translator, if you can't understand it, let me re-explain it. Thank you.

mcbianxiao avatar Aug 17 '24 10:08 mcbianxiao

Wow, 3 hours ago. I just installed Bluemap yesterday, and today I realized I had the same issue, so I came here to report it.

So yeah, I'm wondering the same. For now, I just hid them from the map by enabling the "hide-sneaking" option and sneaking all AFK players. But I'd prefer to properly show them since it's useful information to know if there are AFK non-players connected.

Edit: Restarting the minecraft server also removes them, but that's not an option for most of us I think.

elboletaire avatar Aug 17 '24 13:08 elboletaire

BlueMap is using the ServerPlayConnectionEvents.JOIN and ServerPlayConnectionEvents.DISCONNECT events provided by FabricAPI to detect players joining and leaving. So right now i'd say this is more an issue with the mod which is adding the fake-players, because it seems like it is triggering the JOIN event but not the DISCONNECT event of FabricAPI.

Please contact them first and ask about their pov on this :)

TBlueF avatar Aug 18 '24 08:08 TBlueF

BlueMap is using the ServerPlayConnectionEvents.JOIN and ServerPlayConnectionEvents.DISCONNECT events provided by FabricAPI to detect players joining and leaving. So right now i'd say this is more an issue with the mod which is adding the fake-players, because it seems like it is triggering the JOIN event but not the DISCONNECT event of FabricAPI.

That kinda makes sense since the command to disconnect them is kill, not disconnect.

Not sure if OP is using carpet, but I've created an issue there, since it's what I'm using: https://github.com/gnembon/fabric-carpet/issues/1983

elboletaire avatar Aug 19 '24 09:08 elboletaire

Closing this here, but i'll keep an eye on those issues on the carpet-repo that you opened :)

TBlueF avatar Sep 01 '24 09:09 TBlueF

Still an issue. Unable to remove players, since there is only /player xxx kill command. /kill xxx also doesnt remove it from the webapp.

Vaskyy avatar Sep 11 '25 13:09 Vaskyy

also logged under https://github.com/gnembon/fabric-carpet/issues/1962

netcrafts avatar Nov 20 '25 23:11 netcrafts