sefirosweb / minecraftLegion

Legion of bots for minecraft
45 stars 9 forks source link

Disconnect because username is too long. #12

Closed lupettohf closed 1 year ago

lupettohf commented 1 year ago

Starting bot redacted@outlook.com Stdout: Injected pathfinder { translate: 'disconnect.genericReason', with: [ 'Internal Exception: io.netty.handler.codec.DecoderException: The received string length is longer than maximum allowed (24 > 16)' ] }

Now I'm missing something? I'm starting the bot with the microsoft account credentials but the bot is sending them as username. Does this support online mode servers?

lupettohf commented 1 year ago

Yup, as I thought the createBot constructor for mineflayer is missing the authetication part. Hacked it in. Can I submit a pull?