Update README.md

This commit is contained in:
Jiří Štefka 2023-02-23 02:54:06 +01:00 committed by GitHub
parent a51e3e777d
commit 336867fef3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,21 +31,13 @@ version="1.12.2"
5. Select how much memory you want your server to use ***(in megabytes)***:
```bash
initMem="1500M" #1.5G
maxMem="8000M" # 12G
mem="8000M"
```
6. Modify server parameters to your liking:
```bash
mc_launchoptions="-nogui"
```
6. Allow executing ov the script with `chmod +x start.sh`
7. Run the script with `./start.sh`
7. Add some jvm (java) parameters to your liking ***(memory is set above, do not add it here)***:
```bash
java_launchoptions=""
```
> **Note**
>
> If you use quite old versions of minecraft you should change the defaults under the line above
8. Run the script with `./start.sh`
## Default JVM flags used
By default this script uses [Aikar's Flags](https://docs.papermc.io/paper/aikars-flags). It's set up so that it automatically modifies them if over
12GB of memory is set for the server so you shouldn't need to change them unless you want to swap them out for something else.