msman.sh/README.md

44 lines
1.7 KiB
Markdown
Raw Normal View History

2023-02-23 01:15:42 +01:00
# start_papermc.sh
2023-02-23 01:49:52 +01:00
A better script for running Paper Minecraft server with features such as automatic build updates, automatic downlading, interactive eula accepting, interactive updating, etc.
2023-02-23 01:44:42 +01:00
2023-02-23 02:07:23 +01:00
> **Warning**
>
2023-02-23 02:10:34 +01:00
> - This script is not made for migrating versions. If you're migrating versions, delete your old server's `.jar` file and change the version in the script's settings
> - I am not responsible for any lost data
> - If enough people request it (or someone creates a PR) I'll add this functionality
2023-02-23 02:07:23 +01:00
2023-02-23 01:44:42 +01:00
## Basic setup
> **Note**
>
> Everything mentioned below is modified at the top of the `start.sh` file
2023-02-23 01:49:01 +01:00
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
2023-02-23 01:44:42 +01:00
```bash
version="1.12.2"
```
2023-02-23 01:49:01 +01:00
4. If you want a specific build, set the `select_build` variable. Othervise the sript will download the latest build:
2023-02-23 01:44:42 +01:00
```bash
select_build="1620"
```
2023-02-23 01:49:01 +01:00
5. Select how much memory you want your server to use ***(in megabytes)***:
2023-02-23 01:44:42 +01:00
```bash
2023-02-23 02:54:06 +01:00
mem="8000M"
2023-02-23 01:44:42 +01:00
```
2023-02-23 02:54:06 +01:00
6. Allow executing ov the script with `chmod +x start.sh`
7. Run the script with `./start.sh`
2023-02-23 01:44:42 +01:00
2023-02-23 02:54:06 +01:00
## 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.