The other player (player B) will still be able to see its username.
It does work if the player B disconnects and reconnects (the player needs to login after the hidden username one).
OS and versions
PocketMine-MP: 5.21.1
PHP: 8.2.17
Using JIT: no
Server OS: Debian 11 (or 12 dk)
Game version: All (tested on android + windows in both ways)
Plugins
If you remove all plugins, does the issue still occur?
Tried with just the example plugin + devtools and yes.
If the issue is not reproducible without plugins:
Can you provide sample, minimal reproducing code for the issue? If so, paste it in the bottom section
Here's the "full" example plugin used (just added the previous sent code)
Exampleplugin.zip
Crashdump, backtrace or other files
Here's two recording of me reproducing the bug. The Windows one is the player A and the android one is player B, both videos are almost in sync.
Issue description
Steps to reproduce the issue
It does work if the player B disconnects and reconnects (the player needs to login after the hidden username one).
OS and versions
Plugins
Crashdump, backtrace or other files
Here's two recording of me reproducing the bug. The Windows one is the player A and the android one is player B, both videos are almost in sync.
Windows: https://github.com/user-attachments/assets/fe7fb658-93cb-44e9-8b4e-af826c1d5a2a
Android: https://github.com/user-attachments/assets/c63b6106-15d6-45f2-a5b3-1e550729f0ce