Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
gekigek99 authored Aug 20, 2020
1 parent df3ece2 commit 76e6a86
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ How to use:
3. Check the server-port parameter in "server.properties" (it should be 25565)
4. Edit the paramters in the script as needed:
- startMinecraftServerLin or startMinecraftServerWin
- stopMinecraftServerLin or stopMinecraftServerWin
- stopMinecraftServerLin or stopMinecraftServerWin (should already be good for most uses)
- minecraftServerStartupTime
- timeBeforeStoppingEmptyServer
5. run the script at reboot
Expand All @@ -25,12 +25,13 @@ How to use:
### DEFINITIONS:
Commands to start and stop minecraft server:
```Python
startMinecraftServerLin = "cd {PATH/TO/SERVERFOLDER}; screen -dmS minecraftServer java -Xmx1024M -Xms1024M -jar {minecraftServerName.jar} nogui" #only text in parethesis needs to be modified
#only text in parethesis needs to be modified
startMinecraftServerLin = "cd {PATH/TO/SERVERFOLDER}; screen -dmS minecraftServer java -Xmx1024M -Xms1024M -jar {server.jar} nogui"
stopMinecraftServerLin = "screen -S minecraftServer -X stuff 'stop\\n'"
startMinecraftServerWin = ["java", "-Xmx1024M", "-Xms1024M", "-jar", "server.jar", "nogui"]
startMinecraftServerWin = ["java", "{-Xmx1024M}", "{-Xms1024M}", "-jar", "{server.jar}", "nogui"]
stopMinecraftServerWin = "stop"
```
Personally I set up a systemctl minecraft server service therfore I use:
Personally I set up a systemctl minecraft server service (called "minecraft-server") therefore I use:
```Python
startMinecraftServerLin = "sudo systemctl start minecraft-server"
stopMinecraftServerLin = "sudo systemctl stop minecraft-server"
Expand Down

0 comments on commit 76e6a86

Please sign in to comment.