Compare commits
2 Commits
288b7045b6
...
902732c6dd
Author | SHA1 | Date |
---|---|---|
jay | 902732c6dd | 3 years ago |
jay | 65d13a3379 | 3 years ago |
2 changed files with 32 additions and 32 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