This guide provides instructions for setting up a Minecraft server running on Paper. Follow the steps below to manually or automatically configure your server.
Warning
This repository is currently in development! It uses a root user to start up the server and should not be run on important hardware! Use with caution
This quickstart sets up a basic paper minecraft server, BlueMap, nginx and certbot for the given domain.
Run the following command, replacing <your-domain.com>
with your actual domain:
sudo ./init.sh <your-domain.com>
Using a domain is optional but can make your server easier to access. Point an A-Record for your domain to the IP address of your server.
Create a minecraft
directory inside the /root
directory to store all server files. If you prefer a different directory, update all relevant file paths in your configuration and startup scripts accordingly.
mkdir /root/minecraft
Install Java (version 21 or above) using your system's package manager. To check if Java is installed, type java
in the terminal. If it’s not installed, your package manager should suggest installation options.
sudo apt install openjdk-21-jre
If you plan to use web-based tools such as BlueMap, you should install Nginx. To do this you can run the provided nginx-setup.sh
script as root:
./nginx-setup.sh <web-domain.com>
Download the Paper .jar
file from PaperMC and place it in the /root/minecraft
folder. Start the server for the first time using:
java -jar paper.jar
-
Copy the
start.sh
script into the/root/minecraft
directory. -
Place the
start-mc.service
file in the/etc/systemd/system/
directory, renaming it tostart-minecraft.service
.Enable the service to start on boot and test it:
sudo systemctl enable start-minecraft.service sudo systemctl start start-minecraft.service
After a reboot, the server should start automatically.
If you want to restrict server access, place a whitelist.json
file in the /root/minecraft
directory. Configure this file with the usernames of the players allowed to join.
Copy a basic configuration file (server.properties
) into /root/minecraft
to set up server properties such as game mode, difficulty, and world settings.
To install the BlueMap plugin, download the .jar
file and add it to the /root/minecraft/plugins
folder. BlueMap provides an interactive map of your Minecraft world, accessible via a web browser. It serves a website on port 8100 on all interfaces by default. You can either access the web page via direct IP and port or use the previously configure nginx to view the map viewer.
This completes the setup. For additional plugins or advanced server configurations, refer to the official PaperMC documentation.