-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Store the scripts in resources
- Loading branch information
Showing
3 changed files
with
29 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@echo off | ||
title Void Game Sever | ||
java -jar void-server-dev.jar | ||
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env bash | ||
title="Void Game Server" | ||
echo -e '\033]2;'$title'\007' | ||
# Early exit on cancel | ||
cleanup() { | ||
echo "" | ||
exit 1 | ||
} | ||
trap cleanup INT | ||
java -jar void-server-dev.jar | ||
# Stop console closing | ||
if [ $? -ne 0 ]; then | ||
echo "Error: The Java application exited with a non-zero status." | ||
read -p "Press enter to continue..." | ||
fi |