Description
- The FAQ doesn't contain a resolution to my issue
Versions
- mineflayer: 4.26.0
- server: fabric latest, but no client mods needed( fabric 0.16.10, MC 1.21.4)
- node: 22.14.0
Detailed description of a problem
Instantly Disconnected without errors and doesn't terminate either
Server Console:
[16:56:41] [Server thread/INFO]: com.mojang.authlib.GameProfile@2e0b0336[id=a87a5369-7811-312d-919b-33633269dcf8,name=DiabloBot,properties={}] lost connection: Disconnected
[17:19:20] [Server thread/INFO]: com.mojang.authlib.GameProfile@427bc062[id=a87a5369-7811-312d-919b-33633269dcf8,name=DiabloBot,properties={}] lost connection: Disconnected
Code:
What did you try yet?
Did you try any method from the API?
Did you try any example? Any error from those?
Your current code
const bot = mineflayer.createBot({
host: 'myplayitggserverip',
username: 'DiabloBot',
auth: 'offline',
hideErrors: false,
})
bot.on('chat', (username, message) => {
if (username === bot.username) return
bot.chat(message)
})
bot.on('error', (er) => {console.log(er)})
// Log errors and kick reasons:
bot.on('kicked', console.log)
bot.on('error', console.log)
Expected behavior
Bot Should be Running or atleast Giving a Error About Disconnection but the Debug Console is Blank
Additional context
I am using Playit.gg tunnel for my server however i did test with other public servers and the issue was still there so that shouldnt be the problem