`BackpackAcccessLogger` uses formatted player name instead of plain username
andriihorpenko opened this issue ยท 1 comments
Describe the bug
BackpackAcccessLogger
creates log entries using player's display name, which often includes prefix, suffix and other server-defined things. This makes using /sophisticatedbackpacks list <player>
command essentially unusable in various cases.
Regarding prefixes: server owners often map symbols to .png
textures. This is how custom image prefixes are done. Hence, when I need to access player's backpack via a /sophisticatedbackpacks list <player>
command, I have to know that special symbol. The chat box becomes unusable due to how Minecraft interprets these symbols.
To Reproduce
Steps to reproduce the behavior:
- Give a player some prefix or suffix using arbitrary characters. You can skip a custom symbol-texture mapping setup and just add a plain text prefix.
- Use
/sophisticatedbackpacks list <player>
on that player.
Expected behavior
Use Player#getName
instead. This returns a pure player's name from the GameProfile
.
Command after pressing on the suggestion or using TAB:
Added quotes to force command accept space between a special symbol and a username:
Versions
All versions are affected as the code snippet attached above hasn't changed.