PrismarineJS / mineflayer

Create Minecraft bots with a powerful, stable, and high level JavaScript API.
https://prismarinejs.github.io/mineflayer/
MIT License
4.75k stars 871 forks source link

add delay when logging in #3393

Open AlizerUncaged opened 3 weeks ago

AlizerUncaged commented 3 weeks ago

Is your feature request related to a problem? Please describe.

Just a simple feature request so that the bot doesnt get kicked by my server's antibot plugin

Describe the solution you'd like

my bots get detected by the server's antibot plugin below is the server's kick message

{\"extra\":[{\"bold\":true,\"color\":\"red\",\"text\":\"ANTIBOT\"},{\"color\":\"white\",\"text\":\"\\n\"},{\"color\":\"white\",\"text\":\"\\n\"},{\"color\":\"red\",\"text\":\"You logged in too fast.\"},{\"color\":\"white\",\"text\":\"\\n\"},{\"color\":\"white\",\"text\":\"\\n\"},{\"color\":\"yellow\",\"text\":\"Please wait a few seconds and log in again.\"}],\"text\":\"\"}

Describe alternatives you've considered

add a feature where we can add a small delay when logging in

Zn10plays commented 3 weeks ago

I am not sure about the other, but if a server does not allow bots, I do not think it is ethically correct to enable such behavior.

extremeheat commented 3 weeks ago

small delay when logging in

Delay for what? Can you explain why can't the user implement this in their code currently?