Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Use a base image that supports Java 8, as required by Paper 1.12.2
FROM openjdk:8-jre

# Install necessary dependencies
RUN apt-get update && apt-get install -y wget

# Create a directory for the Minecraft server
WORKDIR /workspaces/minecraft-server

# Download and set up the Paper 1.12.2 server
RUN wget https://api.papermc.io/v2/projects/paper/versions/1.12.2/builds/1620/downloads/paper-1.12.2-1620.jar -O paperclip.jar
RUN java -jar paperclip.jar --nogui

# Accept the EULA
RUN echo "eula=true" > eula.txt

7 changes: 7 additions & 0 deletions get-latest-showscript.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

# Fetch the latest ShowScript release jar from the GitHub repository
LATEST_RELEASE=$(curl -s https://api.github.com/repos/MCParks/ShowScript/releases/latest | grep -oP '"browser_download_url": "\K(.*)(?=")')

# Ensure the script saves the downloaded jar to the plugins directory
wget $LATEST_RELEASE -O /workspaces/minecraft-server/plugins/showscript.jar
5 changes: 5 additions & 0 deletions get-plugins.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

# Download WorldGuard and WorldEdit plugins
wget https://dev.bukkit.org/projects/worldguard/files/2610618/download -O /workspaces/minecraft-server/plugins/worldguard.jar
wget https://dev.bukkit.org/projects/worldedit/files/2597538/download -O /workspaces/minecraft-server/plugins/worldedit.jar