Linux Commands and Scripts

How to Install PaperSpiot on CentOS 8

In this tutorial, we will show you how to install PaperSpiot on CentOS 8.

PaperSpigot is a high performance fork of Spigot that aims to fix gameplay and mechanics inconsistencies. Paper contains numerous unique features and changes, including many performance improvements not found in Spigot.

Prerequisites

Let’s get started with the installation.

Step 1 – Keep the server up to date

# dnf update -y

Step 2 – Install JAVA

Following command will install JAVA JDK 11.

# dnf install java-11-openjdk-devel -y

Check the version of the JAVA to verify the installation

# java -version

Output:

openjdk version “11.0.8” 2020-07-14 LTS
OpenJDK Runtime Environment 18.9 (build 11.0.8+10-LTS)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.8+10-LTS, mixed mode, sharing)

Step 3 – Install PaperSpigot

Ensure you are in the home directory of the user you are planning to use to install PaperSpigot.

Create a folder for PaperSpigot

# mkdir paper

# cd paper

# wget -O paperclip.jar https://papermc.io/ci/job/Paper/lastSuccessfulBuild/artifact/paperclip.jar

This will download the latest build of PaperSpigot. If you would like to use a different Minecraft version, replace lastSuccessfulBuild with a corresponding build number which you can find here.

Step 4 – Start your server

Create a start up script for your server.

# vi start.sh

Make start.sh match the following, replacing 1024M with the amount of RAM installed on your server.

#!/bin/sh

java -Xms512M -Xmx1024M -XX:MaxPermSize=128M -jar paperclip.jar

Make start.sh executable.

# chmod +x start.sh

Start your server.

Before you start the server, we need to replace eula=false to eula=true in eula.txt

# ./start.sh

The first time you start your server, it will download files necessary to setup PaperSpigot. After the first run, your server will launch faster.

Run your server in the background

In case, if you want to run the PaperSpigot server in background, you can do it with screen. Follow these steps to install and run the server in the screen.

First, install EPEL repository using following command:

# dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

Next, install screen.

# dnf install screen -y

Open an instance of screen.

# screen -S “paper”

Start your server script.

# cd ~/paper

# ./start.sh

We have successfully install and configure PaperSpigot on CentOS 8.

In this tutorial, we have seen how to install PaperSpiot on CentOS 8.

Related Articles