JadeMin / aterbot

✨ A Minecraft bot for keep your Aternos server alive 24/7!
GNU General Public License v3.0
130 stars 583 forks source link

Error #30

Open LegitMariosGR opened 11 months ago

LegitMariosGR commented 11 months ago

Software / version

Paper 1.20.1

Describe your problem

Hello, when I'm pressing run it shows me this error and never joins the server what am I doing wrong? (I have set the correct host, port and username)

Chunk size is 23 but only 17 was read ; partial packet : {"name":"disconnect","params":{"reason":"minecraft:brand"}}; buffer :000f6d696e6563726166743a6272616e64055061706572 SyntaxError: Unexpected token m in JSON at position 0 at JSON.parse (<anonymous>) at Client.<anonymous> (/home/runner/aterbot/node_modules/.pnpm/minecraft-protocol@1.44.0/node_modules/minecraft-protocol/src/client/versionChecking.js:6:21) at Client.emit (node:events:525:35) at Client.emit (node:domain:489:12) at emitPacket (/home/runner/aterbot/node_modules/.pnpm/minecraft-protocol@1.44.0/node_modules/minecraft-protocol/src/client.js:83:12) at FullPacketParser.<anonymous> (/home/runner/aterbot/node_modules/.pnpm/minecraft-protocol@1.44.0/node_modules/minecraft-protocol/src/client.js:107:9) at FullPacketParser.emit (node:events:513:28) at FullPacketParser.emit (node:domain:489:12) at addChunk (/home/runner/aterbot/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/_stream_readable.js:279:12) at readableAddChunk (/home/runner/aterbot/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/_stream_readable.js:262:11) AFKBot got an error: SyntaxError: Unexpected token m in JSON at position 0

amoraschi commented 7 months ago

@LegitMariosGR

Mineflayer doesn't support 1.20.1 as of right now, it supports up to 1.20. You can implement it yourself by doing a PR to the corresponding repositories, and then doing a PR to this project to update the mineflayer version.