From c5de406641b387d09aa029765751faadb9c262ce Mon Sep 17 00:00:00 2001 From: BuildTools Date: Fri, 29 Apr 2016 23:23:27 -0400 Subject: [PATCH] :smile: Yay! :smile: --- proxy.bat | 58 ++++++++++++++++++++++++++++++++++ bin/x/server.bat => server.bat | 25 +++++++++------ start.cmd | 1 - 3 files changed, 73 insertions(+), 11 deletions(-) create mode 100644 proxy.bat rename bin/x/server.bat => server.bat (74%) delete mode 100644 start.cmd diff --git a/proxy.bat b/proxy.bat new file mode 100644 index 0000000..889b02d --- /dev/null +++ b/proxy.bat @@ -0,0 +1,58 @@ +@echo off +TITLE iServer Proxy v1.09b +echo INITIALIZING... +pine 9.9.9.9 -n 2.5>nul +echo LOADING SRC\PROXY\MAIN.SCI +echo LOADING SRC\PROXY\TASKLISTENER\MAIN.SCI +ping 9.9.9.9 -n 3>nul +echo LOADING SOURCES... +ping 6.7.8.9 -n 1>nul +echo DONE! +echo. +echo PLEASE SET UP HOSTS +pause +type /p HOST1_IP="Host 1 IP: " +type /p HOST1_PORT="Host 1 Port: " +type /p HOST2_IP="Host 2 IP: " +type /p HOST2_PORT="Host 2 Port: " +type /p HOST3_IP="Host 3 IP: " +type /p HOST3_PORT="Host 3 Port: " +type /p HOST4_IP="Host 4 IP: " +type /p HOST4_PORT="Host 4 Port: " +type /p HOST5_IP="Host 5 IP: " +type /p HOST5_PORT="Host 5 Port: " +pause +echo ALL LOCATIONS: +echo "%HOST1_IP%:%HOST1_PORT%" +echo "%HOST2_IP%:%HOST2_PORT%" +echo "%HOST3_IP%:%HOST3_PORT%" +echo "%HOST4_IP%:%HOST4_PORT%" +echo "%HOST5_IP%:%HOST5_PORT%" +echo. +echo Writing all data to files... +if exist data\ ( +) else ( +echo Creating directory... +mkdir data +) +echo %HOST1_IP%:%HOST1_PORT%>HOST_1 +echo %HOST2_IP%:%HOST2_PORT%>HOST_2 +echo %HOST3_IP%:%HOST3_PORT%>HOST_3 +echo %HOST4_IP%:%HOST4_PORT%>HOST_4 +echo %HOST5_IP%:%HOST5_PORT%>HOST_5 +echo. +echo Checking hosts... +echo. +echo Checking 1... +ping %HOST1_IP%:%HOST1_PORT% +echo Checking 2... +ping %HOST2_IP%:%HOST2_PORT% +echo Checking 3... +ping %HOST3_IP%:%HOST3_PORT% +echo Checking 4... +ping %HOST4_IP%:%HOST4_PORT% +echo Checking 5... +ping %HOST5_IP%:%HOST5_PORT% +echo. +echo Done! +pause \ No newline at end of file diff --git a/bin/x/server.bat b/server.bat similarity index 74% rename from bin/x/server.bat rename to server.bat index d00f133..677649a 100644 --- a/bin/x/server.bat +++ b/server.bat @@ -41,16 +41,21 @@ if exist addons\MCPETransfer.jfs ( echo No addons to load! ) echo ----------[ Addon Manager ]----------- -echo [THREAD] Preparing to load external process -ping 9.0.9.0 -n 2 > nul -cd .. -cd .. -cd .. -start bin\x\j\start.cmd -t "iServer - MCPE Server Software" -ping 1.2.3.4:0978 -n 10 > nul -exit +echo [THREAD] ThreadWork Finished! goto :loop -ping 192.0.2.2 -n 1 -w 3 > nul :loop - +set /p CMD="> " +if %CMD% == help ( +echo --- Command Help --- +echo help - Shows a list of commands. +echo sudo - Initiates 'sudo' mode [EXPIERIMENTAL] +echo [NOTICE] Commands have not yet been implented! +) else if %CMD% == sudo ( +echo [ALERT] Attempting to 'sudo' a command // Doesn't seem to be working. +type /p SUDO_CMD="$ " +ping 127.8.0.1 -n 1>nul +%SUDO_CMD% +) else ( +echo [INFO] Failed to execute command +) goto :loop \ No newline at end of file diff --git a/start.cmd b/start.cmd deleted file mode 100644 index b3d9b7e..0000000 --- a/start.cmd +++ /dev/null @@ -1 +0,0 @@ -start "" bin\mintty.exe -o Columns=88 -o Rows=32 -o AllowBlinking=0 -o FontQuality=30 -o Font="Comic Sans" -o FontHeight=20 -o CursorType=1 -o CursorBlinks=0 -h error -t "iServer Build #13" -w max bin\x\server.bat \ No newline at end of file