Skip to content

crimewaffle/minecraft-installer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Minecraft Server Setup with PaperMC

This GitLab repository provides a simple bash script for setting up a Minecraft server using PaperMC on a Linux system. The script automates the process of installing Java, creating a dedicated Minecraft user, downloading PaperMC, and setting up a systemd service for easy server management.

Prerequisites

  • This script is designed to run on a Linux system with systemd (e.g., Ubuntu).
  • Ensure you have root privileges or run the script with sudo.

Usage

  1. Clone this repository or download the script directly.
git clone https://github.com/crimewaffle/minecraft-installer.git
cd minecraft-installer
  1. Make the script executable.
chmod +x installer.sh
  1. Run the script.
./installer.sh

Script Details

The script performs the following steps:

  1. Checks if the script is run as root.
  2. Updates the system and installs Java (OpenJDK 17).
  3. Creates a dedicated Minecraft user (minecraft) and adjusts permissions on the Minecraft directory.
  4. Downloads the specified version of PaperMC.
  5. Creates a systemd service for managing the Minecraft server.

Configuration

  • You can customize the Minecraft version by modifying the download link in the script.
  • Adjust the minecraft.service file if you need to change server configurations.

Post-Setup

After running the script, the server is ready to use. Additional instructions are provided upon completion:

  • Start the server using:
sudo systemctl start minecraft
  • Enable automatic startup at boot:
sudo systemctl enable minecraft

Acknowledgments

Thank you for using this script! Feel free to contribute to the repository or report any issues.

If you have any questions or need assistance, please open an issue.

Happy Minecrafting! 🎮

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages