Open azurenekowo opened 3 years ago
Any other plugins the server is running?
@U5B so I just find out the server runs botsentry too, maybe it is the problem?
Try this PR: https://github.com/PrismarineJS/mineflayer/pull/2217
npm i https://github.com/PrismarineJS/mineflayer/pull/2217
This fixed an issue with a different anticheat on 1.17. EDIT: also if you don't mind dropping the server ip so I can test hehe
@U5B uhhh
@U5B have same problem, and can't install pull. Any solution? server ip: mc.FunDaily.xyz (which is 1.17.1)
you can use this to log into 1.17.1
if(mcbot.heldItem.type == 795 && mcbot.heldItem.nbt.value.display.value.Name.value.includes("Выбор режима "))
{
while(mcbot.heldItem.type == 795)
{
mcbot.activateItem();
await sleep(1000);
mcbot.on('windowOpen', (window) => {
mcbot.clickWindow(5,0,0)
mcbot.removeAllListeners("windowOpen");
})
await sleep(10000);
}
}
return
})
@EndermanHackerVN
maybe use npm i https://github.com/PrismarineJS/mineflayer#pull/2217/head
refer to this answer
Versions
Detailed description of a problem
Bot auto get kicked after 40 seconds logging in server with the error Internal Exception: io.netty.handler.timeout.ReadTimeoutException
What did you try yet?
Did you try any method from the API? Yes Did you try any example? Any error from those? Yes, and yes. I also tried to specify a version. No luck.
Your current code
Expected behavior
It should log in and stay afk.
Additional context
The server is running Application Management Panel (AMP for MC).