Skip to content

Not even loading the plugin? #37

Description

@prljav

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions