Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 420 Bytes

MIGRATION.md

File metadata and controls

14 lines (12 loc) · 420 Bytes

Migrating from 0.x to 1.x

Instead of passing bot in AutoAuth plugin you instead, need to pass AutoAuth as well as configuration for it in bot's configuration like so:

var mineflayer = require('mineflayer');
var AutoAuth = require('mineflayer-auto-auth')
var bot = mineflayer.createBot({
  plugins: [AutoAuth],  // Load AutoAuth plugin
  AutoAuth: {
    // Configuration for AutoAuth plugin
  }
});