This repository was archived by the owner on Jun 12, 2023. It is now read-only.
TypeError: Cannot read properties of undefined (reading 'replace') #77
Labels
bug
Something isn't working
Describe the bug
everytime i start the bot it doesn't join and it gives me this error:
TypeError: Cannot read properties of undefined (reading 'replace')
at EventEmitter. (C:\Users\Administrator\Desktop\Afk-Bot-main\bot
.js:148:31)
at EventEmitter.emit (node:events:513:28)
at Client. (C:\Users\Administrator\Desktop\Afk-Bot-main\node_modu
les\mineflayer\lib\plugins\kick.js:8:9)
at Client.emit (node:events:525:35)
at FullPacketParser. (C:\Users\Administrator\Desktop\Afk-Bot-main
\node_modules\minecraft-protocol\src\client.js:91:12)
at FullPacketParser.emit (node:events:513:28)
at addChunk (C:\Users\Administrator\Desktop\Afk-Bot-main\node_modules\readab
le-stream\lib_stream_readable.js:298:12)
at readableAddChunk (C:\Users\Administrator\Desktop\Afk-Bot-main\node_module
s\readable-stream\lib_stream_readable.js:280:11)
at Readable.push (C:\Users\Administrator\Desktop\Afk-Bot-main\node_modules\r
eadable-stream\lib_stream_readable.js:241:10)
at Transform.push (C:\Users\Administrator\Desktop\Afk-Bot-main\node_modules
readable-stream\lib_stream_transform.js:139:32)
Node.js v18.16.0
C:\Users\Administrator\Desktop\Afk-Bot-main>
To Reproduce
Steps to reproduce the behavior:
Create an offline mode server with Paper server software.
Launch the server.
Activate the bot.
Instantly Crash.
Bot config
https://pastebin.com/yvFFjgnD
The text was updated successfully, but these errors were encountered: