Open B2H990 opened 2 months ago
cc @LucienHH
This works:
const bot = mineflayer.createBot({
host: 'realhost',
realms: {
pickRealm: (realms) => realms[0]
},
auth: 'microsoft'
})
But not this:
const bot = mineflayer.createBot({
realms: {
pickRealm: (realms) => realms[0]
},
auth: 'microsoft'
})
That is strange since the realm handling will replace the host and port with the correct one. Can anyone else with realms reproduce?
If you can still repro with latest, can you add process.env.DEBUG = '*'
to the top of your code and provide the debug console output?
I am able to reproduce the issue on latest. The debug log has sensitive information that I would rather not post publicly on a github issue. Is there another way I can send it to you?
Ah, I think I see the issue. We're not waiting for realm auth (where host information gets deduced) inside https://github.com/PrismarineJS/node-minecraft-protocol/blob/master/src/createClient.js#L50 before loading the other plugins (so at their init time there is indeed no host/port which can cause problems).
I'll transfer the issue to nmp
prints connected, but never actually connects to realm.