-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
Description
- 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
*/
Reactions are currently unavailable