The best way to quicky spin spin up a Minecraft server
|
||
---|---|---|
LICENSE | ||
README.md | ||
start.sh |
start_papermc.sh
A better script for running Paper Minecraft server with features such as automatic build updates, automatic downlading, interactive eula accepting, interactive updating, etc.
Warning
- 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
Basic setup
Note
Everything mentioned below is modified at the top of the
start.sh
file
- 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
-
Open
star.sh
in your favorite editor (eg. `nano start.sh) -
Change the
version
variable to the version you want
version="1.12.2"
- If you want a specific build, set the
select_build
variable. Othervise the sript will download the latest build:
select_build="1620"
- Select how much memory you want your server to use (in megabytes):
mem="8000M"
- Allow executing ov the script with
chmod +x start.sh
- Run the script with
./start.sh
Default JVM flags used
By default this script uses Aikar's 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.