diff --git a/config.js b/config.js index 6879142..cb4e57c 100644 --- a/config.js +++ b/config.js @@ -11,7 +11,10 @@ module.exports = { normalKey: '�iB_D���k��j8H�{?[/ڭ�f�}Ѣ�^-=�Ț��v]��g>��=c', ownerHashKey: 'b)R��nF�CW���#�\\[�S*8"t^eia�Z��k����K1�8zȢ�' }, - proxy: true, + proxy: { + enabled: true, + version: '1.18.2' + }, console: true, useChat: false, core: { diff --git a/plugins/proxy.js b/plugins/proxy.js index 50a4777..3d40561 100644 --- a/plugins/proxy.js +++ b/plugins/proxy.js @@ -4,7 +4,7 @@ const mc = require('minecraft-protocol') const { loadPlugins } = require('../util/loadPlugins') function inject (bot, dcclient, config) { - if (!config.proxy) return + if (!config.proxy.enabled) return let index config.servers.forEach((server, _index) => { @@ -12,7 +12,7 @@ function inject (bot, dcclient, config) { index = _index }) - const version = bot.version + const version = config.proxy.version const srv = mc.createServer({ 'online-mode': false, port: 25566 + index,