Skip to content
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

Open
Sermatty opened this issue May 13, 2023 · 0 comments
Open
Labels
bug Something isn't working

Comments

@Sermatty
Copy link

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

@Sermatty Sermatty added the bug Something isn't working label May 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant