16 lines
322 B
JavaScript
16 lines
322 B
JavaScript
|
const armorManager = require('mineflayer-armor-manager')
|
||
|
const mineflayer = require('mineflayer');
|
||
|
|
||
|
let cfg = {}
|
||
|
|
||
|
|
||
|
const load = (config) => {
|
||
|
cfg = config
|
||
|
bot = cfg.bot
|
||
|
|
||
|
bot.loadPlugin(armorManager);
|
||
|
}
|
||
|
|
||
|
const unload = () => { console.warn("armour: may not properly unload") }
|
||
|
|
||
|
module.exports = { load, unload }
|