phantom
phantom copied to clipboard
Make a script for Phantom
I really like this project, and what it would make it much usable is a .bat script, that asks the player a server IP, and it starts Phantom, then, when you stop it, it makes a loop. If you can, make it for MacOS and Linux too.

The batch (.bat) file:
@echo off
TITLE Phantom server bridge for Minecraft Xbox One and PS4
:start
set /p server="Insert server IP (ex. serverip:port): "
:phantom
phantom -server %server%
goto start
If we want to make a file detection, we can make it so:
@echo off
TITLE Phantom server bridge for Minecraft Xbox One and PS4
:start
if exist server.ip (
set /p server= <server.ip
goto phantomfile
) else (
set /p server="Insert server IP (ex. serverip:port): "
goto phantom
)
:phantom
echo Executing loop mode...
phantom -server %server%
goto start
:phantomfile
echo Executing in 1 time mode...
phantom -server %server%
pause
exit 1
Basically, this .bat file variant detects if there is a file into the folder named server.ip, and in it you need to write the server ip with the port, then, it will start the server without asking you any server ip, but just using the server.ip server IP with the port. If there isn't any server.ip file, it will just ask you to insert the IP and the port.