- Java 21: OpenJDK 21 or equivalent.
- screen: To run the server in the background.
- curl and unzip: For downloading and extracting files.
- jq: For JSON parsing (PaperMC setup).
Install dependencies:
sudo apt update && sudo apt install -y openjdk-21-jre-headless screen curl unzip jq-
Clone this repository:
git clone https://github.com/entity12208/Fabric-Server.git cd Fabric-Server -
Run the setup script and follow the prompts:
chmod +x setup-server.sh ./setup-server.sh
The script will guide you to select Fabric, Forge, or PaperMC, and set up everything automatically.
Run:
./start-server.shThis will auto-detect your server type and start the correct jar.
To update mods or plugins:
./update-mods.shEdits may be needed in the script to add custom mods/plugins.
- Automated daily backups are created at 3 AM (see
backup.sh). - To manually create a backup:
./backup.sh
- Add player usernames and UUIDs to
whitelist.json. Find UUIDs at MinecraftUUID.com. - For a public server, set
white-list=falseinserver.properties.