Update README.md

This commit is contained in:
Jiří Štefka 2023-02-23 01:49:01 +01:00 committed by GitHub
parent 0eff5a0e5d
commit 4d18eb1309
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -6,28 +6,35 @@ A better script for running Paper Minecraft server with features such as automat
> >
> Everything mentioned below is modified at the top of the `start.sh` file > Everything mentioned below is modified at the top of the `start.sh` file
1. Change the `version` variable to the version you want 1. Clone this repository and enter the directory: `git clone https://github.com/jiriks74/start_papermc.sh minecraft_server && cd minecraft_server`
> **Note**
>
> If you want to have the server under some specific directory name, just change `minecraft_server` to something else
2. Open `star.sh` in your favorite editor *(eg. `nano start.sh)*
3. Change the `version` variable to the version you want
```bash ```bash
version="1.12.2" version="1.12.2"
``` ```
2. If you want a specific build, set the `select_build` variable. Othervise the sript will download the latest build: 4. If you want a specific build, set the `select_build` variable. Othervise the sript will download the latest build:
```bash ```bash
select_build="1620" select_build="1620"
``` ```
3. Select how much memory you want your server to use ***(in megabytes)***: 5. Select how much memory you want your server to use ***(in megabytes)***:
```bash ```bash
initMem="1500M" #1.5G initMem="1500M" #1.5G
maxMem="8000M" # 12G maxMem="8000M" # 12G
``` ```
4. Modify server parameters to your liking: 6. Modify server parameters to your liking:
```bash ```bash
mc_launchoptions="-nogui" mc_launchoptions="-nogui"
``` ```
5. Add some jvm (java) parameters to your liking ***(memory is set above, do not add it here)***: 7. Add some jvm (java) parameters to your liking ***(memory is set above, do not add it here)***:
```bash ```bash
java_launchoptions="" java_launchoptions=""
``` ```
@ -35,4 +42,4 @@ mc_launchoptions="-nogui"
> >
> If you use quite old versions of minecraft you should change the defaults under the line above > If you use quite old versions of minecraft you should change the defaults under the line above
6. Run the script with `./start.sh` 8. Run the script with `./start.sh`