Skip to content

wujood/minecraft-paper-setup

Repository files navigation

Minecraft Paper Server Setup

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


Quickstart (Automated Setup)

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>

Manual Setup Guide

1. Domain (Optional)

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.

2. Create Minecraft Directory

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

3. Java Installation

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

4. Nginx (Optional)

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>

5. Install Paper

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

6. Configure Systemd for Autostart

  1. Copy the start.sh script into the /root/minecraft directory.

  2. Place the start-mc.service file in the /etc/systemd/system/ directory, renaming it to start-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.

7. Whitelist Configuration (Optional)

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.

8. Server Settings

Copy a basic configuration file (server.properties) into /root/minecraft to set up server properties such as game mode, difficulty, and world settings.

9. Plugins (Optional)

BlueMap

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages