Skip to content

Instantly share code, notes, and snippets.

@jamezrin
Last active January 16, 2016 21:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamezrin/1a7eae9ee16f3d90b507 to your computer and use it in GitHub Desktop.
Save jamezrin/1a7eae9ee16f3d90b507 to your computer and use it in GitHub Desktop.
@echo off
::The number of bots
set BOTS=10
::The ip to connect
set IP=127.0.0.1:25565
::The delay between connections
set DELAY=0
::The name for the bots
set NAME=Bot%%N
:start
echo Putting %BOTS% bots into %IP%
for /l %%N in (1 1 %BOTS%) do (
timeout %DELAY% /nobreak > nul
start cmd.exe /c MinecraftClient.exe %NAME% - %IP%
echo %NAME% has entered %IP%
)
echo %BOTS% bots have entered %IP%, press a key to stop or Crlt+C to close this window
pause
goto stop
:stop
echo Closing all bots instances
taskkill /f /im MinecraftClient.exe
echo All the bots instances have been closed, press a key to start again or Crlt+C to close this window
pause
goto start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment