mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-14 10:44:55 -05:00
um add version to proxy idk about this
This commit is contained in:
parent
56060626e2
commit
f02784a9fc
2 changed files with 6 additions and 3 deletions
|
@ -11,7 +11,10 @@ module.exports = {
|
|||
normalKey: '<27>iB_D<5F><44><EFBFBD>k<EFBFBD><6B>j8H<38>{?[/ڭ<>f<EFBFBD>}Ѣ<>^-=<3D>Ț<EFBFBD><C89A>v]<5D><>g><3E><>=c',
|
||||
ownerHashKey: 'b)R<><52>nF<6E>CW<43><57><EFBFBD>#<23>\\[<5B>S*8"t^eia<69>Z<EFBFBD><5A>k<EFBFBD><6B><EFBFBD><EFBFBD>K1<4B>8zȢ<7A>'
|
||||
},
|
||||
proxy: true,
|
||||
proxy: {
|
||||
enabled: true,
|
||||
version: '1.18.2'
|
||||
},
|
||||
console: true,
|
||||
useChat: false,
|
||||
core: {
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue