[SPIGOT-3306] "com.mojang.authlib.GameProfile..." instead of player name Created: 09/Jun/17 Updated: 05/Jan/25 Resolved: 05/Jan/25 |
|
| Status: | Resolved |
| Project: | Spigot |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Minor |
| Reporter: | Zhenya Zima | Assignee: | Doc |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | log, name, player, server | ||
| Environment: |
Windows Server 2012 R2 x64, Java 1.8 x64 |
||
| Attachments: |
|
| Description |
|
Hello. Instead of: com.mojang.authlib.GameProfile@55ba7da0[id=3a4bc2f1-5e77-3e23-ba29-ae631e4c611a,name=My Player Name,properties={},legacy=false] (/127.0.0.1:50000) ...
It would be better to display only the name of player: My Player Name (/127.0.0.1:50000) ... These messages during server work appears quite a lot and server log fills up. In the result, find something important becomes problematic (IP's was changed).. [2017-06-08 20:54:51 | User Authenticator #8] UUID of player KuRaJ is 9fb8a635-7ffc-3349-9a8d-c81935261436
[2017-06-08 20:54:51 | Server thread] Disconnecting com.mojang.authlib.GameProfile@679138ce[id=9fb8a635-7ffc-3349-9a8d-c81935261436,name=KuRaJ,properties={textures=[com.mojang.authlib.properties.Property@5fbededf]},legacy=false] (/115.25.19.162:54376): Please wait 2 sec. before reconnecting.
[2017-06-08 20:54:51 | Server thread] com.mojang.authlib.GameProfile@679138ce[id=9fb8a635-7ffc-3349-9a8d-c81935261436,name=KuRaJ,properties={textures=[com.mojang.authlib.properties.Property@5fbededf]},legacy=false] (/115.25.19.162:54376) lost connection: Please wait 2 sec. before reconnecting.
[2017-06-08 21:02:22 | User Authenticator #19] UUID of player My Player Name is 3a4bc2f1-5e77-3e23-ba29-ae631e4c611a
[2017-06-08 21:02:22 | Server thread] Disconnecting com.mojang.authlib.GameProfile@55ba7da0[id=3a4bc2f1-5e77-3e23-ba29-ae631e4c611a,name=My Player Name,properties={},legacy=false] (/52.73.234.4:48463): Player name cannot contain spaces.
[2017-06-08 21:02:22 | Server thread] com.mojang.authlib.GameProfile@55ba7da0[id=3a4bc2f1-5e77-3e23-ba29-ae631e4c611a,name=My Player Name,properties={},legacy=false] (/52.73.234.4:48463) lost connection: Player name cannot contain spaces.
[2017-06-08 23:11:43 | User Authenticator #48] UUID of player Dislave is fabaded7-fb7f-32ca-8500-32806f88dbae
[2017-06-08 23:11:43 | Server thread] Disconnecting com.mojang.authlib.GameProfile@3ee3120f[id=fabaded7-fb7f-32ca-8500-32806f88dbae,name=Dislave,properties={},legacy=false] (/13.15.227.110:23102): Please wait 2 sec. before reconnecting.
[2017-06-08 23:11:43 | Server thread] com.mojang.authlib.GameProfile@3ee3120f[id=fabaded7-fb7f-32ca-8500-32806f88dbae,name=Dislave,properties={},legacy=false] (/13.15.227.110:23102) lost connection: Please wait 2 sec. before reconnecting.
...
|
| Comments |
| Comment by Doc [ 05/Jan/25 ] |
|
Currently the method used for this messages was change by mojang and the returnis like this issue suggest. |
| Comment by Doc [ 30/Nov/21 ] |
|
The PR make the changes in the last image.. but maybe i can change a little for show the instance of the gameprofile like.
This is like the original message for with less info, this is maybe for useful. |
| Comment by Zhenya Zima [ 30/Nov/21 ] |
|
I'm don't have permission to access Bitbucket if you replied to me, but OK, thanks! |
| Comment by Doc [ 30/Nov/21 ] |
|
Created PR in spigot for set if the owner want or not reduce this info. https://hub.spigotmc.org/stash/projects/SPIGOT/repos/spigot/pull-requests/111/overview |
| Comment by Zhenya Zima [ 30/Nov/21 ] |
|
I think that GameProfile[name, UUID] will be better if we need to display the UUD anyway.. |
| Comment by Doc [ 29/Nov/21 ] |
|
I try change a little the method where this messages are generated... replacing the gameprofile printed with only name and UUID (because the properties only has object data and not show correctly the texture for example).
|
| Comment by Zhenya Zima [ 18/Jun/21 ] |
|
Any news on this? This change still can make the logging better.. |
| Comment by Zhenya Zima [ 09/Jun/17 ] |
|
But UUID is displayed in every first line. UUID of player ... is ... |
| Comment by md_5 [ 09/Jun/17 ] |
|
Player uuid could be important too... |