parent
288b7045b6
commit
65d13a3379
1 changed files with 21 additions and 21 deletions
@ -1,22 +1,22 @@ |
||||
let cfg |
||||
let bot |
||||
let mcData |
||||
|
||||
function info() { |
||||
const block = bot.blockAtCursor() |
||||
console.log(block) |
||||
cfg.quiet || bot.chat([block.id, block.name]) |
||||
} |
||||
|
||||
const load = (config) => { |
||||
cfg = config |
||||
bot = cfg.bot |
||||
cfg.info = { |
||||
quiet: cfg.quiet, |
||||
} |
||||
mcData = bot.mcData || (bot.mcData = require('minecraft-data')(bot.version)) |
||||
} |
||||
|
||||
const unload = () => {} |
||||
|
||||
let cfg |
||||
let bot |
||||
let mcData |
||||
|
||||
function info() { |
||||
const block = bot.blockAtCursor() |
||||
console.log(block) |
||||
cfg.quiet || bot.chat([block.id, block.name]) |
||||
} |
||||
|
||||
const load = (config) => { |
||||
cfg = config |
||||
bot = cfg.bot |
||||
cfg.info = { |
||||
quiet: cfg.quiet, |
||||
} |
||||
mcData = bot.mcData || (bot.mcData = require('minecraft-data')(bot.version)) |
||||
} |
||||
|
||||
const unload = () => {} |
||||
|
||||
module.exports = { load, unload, info } |
Loading…
Reference in new issue