3
I’m turning an old CPU into a Minecraft server. When turning the computer on, I can get it to open the server via script (starting a -jar file), however, I would like to have it shut down as soon as the -jar program closes.
The script I have is this, which only makes it open
@ECHO OFF
start java -Xms1G -Xmx1G -jar minecraft_server.jar nogui
pause
They could tell me the code that makes the computer shut down as soon as "minecraft_server.jar" is closed?