You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'
})
Versions
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
*/
The text was updated successfully, but these errors were encountered: