The best way to quicky spin spin up a Minecraft server
Go to file
2023-02-25 20:52:02 +01:00
.ms-manager Add update functionality for helper scripts 2023-02-25 20:52:02 +01:00
launch.cfg Add update functionality for helper scripts 2023-02-25 20:52:02 +01:00
LICENSE Initial commit 2023-02-23 01:15:42 +01:00
msman.sh Add update functionality for helper scripts 2023-02-25 20:52:02 +01:00
README.md Update description 2023-02-23 05:23:14 +01:00

start_papermc.sh

The best way to quickly spin up a PaperMC server.

Includes features such as version downlading, automatic build update, interactive eula accepting, protection against accidental version update, Aikar's flags out of the box, etc.

Table of contents

Dependencies

  • jq
  • awk
  • curl

Most, if not all, of these should be already available on your system if you're running something like Ubuntu.

Basic setup

Note

Everything mentioned below is modified at the top of the start.sh file

  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

  1. Open start.sh in your favorite editor (eg. nano start.sh)

  2. Change the select_version variable to the version you want

select_version="1.12.2"
  1. If you want a specific build, set the select_build variable. Othervise the sript will download the latest build:
 select_build="1620"
  1. Select how much memory you want your server to use (in megabytes):
mem="8000M"
  1. Add execute flag to the script:
chmod +x start.sh
  1. Start the script
./start.sh

Updating

Builds

This script can automatically update to the latest papermc build available for the Minecraft version you selected. If you want this behaviour, leave the select_build veriable empty. Otherwise select the build you want and the script will download it for you.

Versions

Warning

  • This script is not made for migrating versions. It won't make sure your plugins are working or that your worlds won't get corrupted. It only downloads a new server file, nothing else.
  • I am not responsible for any lost data

This script is able to update/downgrade versions as you please. Just change the select_version variable to the version you want and the script will download it for you.

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.