I'm pretty sure im doing something wrong, but could anyone help?
STDOUT:
connected
{"text":"This server has mods that require Forge to be installed on the client. Contact your server admin for more details."} false
code:
var mc = require('minecraft-protocol');
var autoVersionForge = require('minecraft-protocol-forge').autoVersionForge;
const bot = mineflayer.createBot({
version: false,
host: 'xxx.xxx.xxx.xxx',
port: 'xxxx',
username: "xxx@xxx.xxx",
auth:"microsoft"
})
const options = {
forgeMods: undefined,
channels: undefined
}
autoVersionForge(bot._client, options)
bot.on('connect', function () {
console.info('connected')
})
bot.on('spawn', function () {
console.info('I spawned')
})
bot.on('end', (x) =>{console.log(x)})
bot.on('kicked', console.log)
console.log('done')
My best guess would be that the client attempts to connect to the server before loading the plugin, which would of course make it not use it.
I'm pretty sure im doing something wrong, but could anyone help?
STDOUT:
code:
My best guess would be that the client attempts to connect to the server before loading the plugin, which would of course make it not use it.