1
Whats going on with my server command
so im starting a minecraft server and i need to type in a command as soon as i press a key it just closes
1
Assuming windows:
You're probably running the command outside the terminal. If you're in a script (.bat or .sh), simply put "PAUSE" on a new line to keep the window open until a key press. Otherwise in the folder with the server .jar, click File (top left corner) > Open Windows Powershell. A terminal will open which allows you to enter multiple commands and see the output of previous commands.
A reason why a server start command exits immediately is because of an error. Once you figured out how to keep the output open, you'll probably have to trouble shoot it to figure out how to actually keep the server running.
You're probably running the command outside the terminal. If you're in a script (.bat or .sh), simply put "PAUSE" on a new line to keep the window open until a key press. Otherwise in the folder with the server .jar, click File (top left corner) > Open Windows Powershell. A terminal will open which allows you to enter multiple commands and see the output of previous commands.
A reason why a server start command exits immediately is because of an error. Once you figured out how to keep the output open, you'll probably have to trouble shoot it to figure out how to actually keep the server running.
