alwyn974 / MinecraftBOT

A simple Minecraft BOT for 1.18.2
https://alwyn974.github.io/MinecraftBOT
MIT License
83 stars 49 forks source link

Add password option to CLI #25

Closed Justuser3310 closed 1 year ago

Justuser3310 commented 1 year ago

It will be great. One script and you on server!

Thank for your project, others or not work or too old. Good luck!

alwyn974 commented 1 year ago

Hi, follow the Feature request template please. I need more details about this. If it's for premium connection it will not be possible to add password option

Justuser3310 commented 1 year ago

Briefly: Join on spigot(or spigot-like) servers with AuthMe(or AuthMe-like plugins) without manual enter password for Cracked account.

Is your feature request related to a problem? Please describe. Yes, problem - manual enter password every connection with GUI and no possibilities in CLI.

Describe the solution you'd like Add parameter to CLI which allow enter password.

alwyn974 commented 1 year ago

Added in 1.0.17 --cmd "/say hello" See the README.md for more information

Justuser3310 commented 1 year ago

See, but... Another problem - There some delay and I can't log in, I guess because bot momentally enter command. MC_BOT_COMMAND="/l mypass" MC_BOT_PORT=25664 java -jar MinecraftBOT-1.0.16-all.jar --host somehost.me --user MyNickname

OS: Linux

alwyn974 commented 1 year ago

Yeah, there is 2000ms of delay, it's necessary because without the delay the command is sent before the bot is "really" connected. I will try another method to send the command on connection

alwyn974 commented 1 year ago

Added --cmdDelay time (in ms)

Justuser3310 commented 1 year ago

Another server, but... It works. Version - https://github.com/alwyn974/MinecraftBOT/actions/runs/3807998154