Last active
January 16, 2016 21:41
-
-
Save jamezrin/1a7eae9ee16f3d90b507 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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