Created
November 15, 2017 04:00
-
-
Save jacobbaratta/0fe329e8328e6596af8bbf6f76b1582c to your computer and use it in GitHub Desktop.
Minecraft restart script
This file contains hidden or 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
| screen -p 0 -S minecraft -X eval 'stuff "say Saving chunks..."\015' | |
| screen -p 0 -S minecraft -X eval 'stuff save-all\015' | |
| screen -p 0 -S minecraft -X eval 'stuff "say The server will be restarting in 15 seconds!"\015' | |
| sleep 15s | |
| screen -p 0 -S minecraft -X eval 'stuff stop\015' | |
| sleep 10s | |
| sh /home/minecraft/boot.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment