diff options
author | Keuin <[email protected]> | 2020-05-08 16:03:32 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2020-05-08 16:03:32 +0800 |
commit | e62d1b52324cbcdef4c6c215417965236fe1cfec (patch) | |
tree | cf0138934c3a52411029c9f6d881cb2254b22441 | |
parent | 929cdb3b20154e73c164c8ed7da7c1607fcc2a77 (diff) |
Add examples for auto restart scripts.
Fix some formatting and grammer errors.
-rw-r--r-- | README.md | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -19,7 +19,9 @@ Minecraft version: 1.14.4 ## 2. Script for auto-restart after restoring Due to the nature of JVM: the Java language's running environment, there is no elegant way to restart Minecraft server in a server plugin. In order to achieve auto restarting, the outer system-based script is required, i.e the script is a batch or a shell script. -KBackup exit JVM with a special code `111` after successfully restored the level. The startup script just check the exit code and restart Minecraft server if the code is `111`. + +KBackup exit JVM with a special code `111` after restoring the level successfully. The startup script just check the exit code and restart Minecraft server if the code is `111`. + I will give examples for some popular operating systems. To use these scripts, you should replace your start.bat or start.sh script with given code lines. ### 2.1 Script for Windows |