Skip to content

Commit

Permalink
😄 Yay! 😄
Browse files Browse the repository at this point in the history
  • Loading branch information
BuildTools committed Apr 30, 2016
1 parent 851ec6d commit c5de406
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 11 deletions.
58 changes: 58 additions & 0 deletions proxy.bat
Original file line number Diff line number Diff line change
@@ -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
25 changes: 15 additions & 10 deletions bin/x/server.bat → server.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 0 additions & 1 deletion start.cmd

This file was deleted.

0 comments on commit c5de406

Please sign in to comment.