[bug]If the robot name is too long, the server will collapse
Koch2333 opened this issue ยท 11 comments
@Koch2333 You need to update your carpet version, and the problem goes away.
BTW in singleplayer this doesn't happen since the problem here is that there is a limit when decoding the name from a packet, and in singleplayer packets are not encoded.
In current Carpet versions you still can spawn players in singleplayer with names with a length > 16 as long as your are not hosting a LAN server.
Also, it may be that Mc doesn't support players which names longer than 10 characters.
The actual limit is 16 characters for a Minecraft account username. Checking on NameMC shows that the username "1234567890123456" is a 16-character valid username associated with an actual Minecraft account, while "12345678901234567" is a 17-character username, which is too long and is therefore invalid.
Try updating carpet version to the latest, as you appear to be on 1.16.4. Also, it may be that Mc doesn't support players which names longer than 10 characters.
This is the reason for the character limitation of the name. Minecraft username has a 16-character limit, but the carpet does not, which caused this bug. I hope the author can fix it.
Are you able to reproduce this problem in a single player environment? For example, running /player abcdefghijklmnopqrstuvwxyz spawn
should (according to current behavior) kick you with Internal Exception: io.netty.handler.codec.DecoderException: The received string length is longer than maximum allowed (26 > 16)
.
Are you able to reproduce this problem in a single player environment? For example, running
/player abcdefghijklmnopqrstuvwxyz spawn
should (according to current behavior) kick you withInternal Exception: io.netty.handler.codec.DecoderException: The received string length is longer than maximum allowed (26 > 16)
.
sorry, but I found I'm using an old version carpet