Skip to content

i cant get to work with realms #3581

@MehmetCanWT

Description

@MehmetCanWT
  • The FAQ doesn't contain a resolution to my issue

Versions

  • mineflayer: #.#.#
  • server: vanilla/spigot/paper #.#.#
  • node: #.#.#

Detailed description of a problem

cant get to work with realms

Your current code

const mineflayer = require('mineflayer')

const bot = mineflayer.createBot({
username: 'mail',
realms: {
// This function is called with an array of Realms the account can join. It should return the one it wants to join.
pickRealm: (realms) => realms[1]
},
auth: 'microsoft' // for offline mode servers, you can set this to 'offline'
})

bot.on('chat', (username, message) => {
if (username === bot.username) return
bot.chat(message)
})

// Log errors and kick reasons:
bot.on('kicked', console.log)
bot.on('error', console.log)
Some code here, replace this
*/


Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions