Egg Repository

Pterodactyl Community Egg Repository

ClassiCube(MGC)

Debian based MCGalaxy Egg.

Read Me

Classicube MCGalaxy

MCGalaxy

MCGalaxy is a fully featured and customisable ClassiCube Server Software based on MCForge/MCLawl.

Server Ports

Port default
Game 25565
Yolks
NameTag
ghcr.io/ptero-eggs/yolks:mono_latestghcr.io/ptero-eggs/yolks:mono_latest
Variables
NameDescriptionEnvironment VariableDefault ValueUser ViewableUser Editable
Install VersionSpecify the version to install from https://github.com/UnknownShadow200/MCGalaxy/releases. Leave latest to install the latest version.VERSIONlatestYesYes
Server NameSpecify the server nameHOSTNAMEPterodactyl ServerYesYes
MOTDSpecify the message of the dayMOTDWelcome to the serverYesYes
Install Script
#!/bin/bash

MATCH=mcgalaxy_
mkdir -p /mnt/server
cd /mnt/server

if [ -z "${GITHUB_USER}" ] && [ -z "${GITHUB_OAUTH_TOKEN}" ] ; then
    echo -e "using anon api call"
else
    echo -e "user and oauth token set"
    alias curl='curl -u ${GITHUB_USER}:${GITHUB_OAUTH_TOKEN} '
fi

## get release info and download links
LATEST_JSON=$(curl --silent "https://api.github.com/repos/UnknownShadow200/MCGalaxy/releases/latest")
RELEASES=$(curl --silent "https://api.github.com/repos/UnknownShadow200/MCGalaxy/releases")

if [ -z "${VERSION}" ] || [ "${VERSION}" == "latest" ]; then
    DOWNLOAD_URL=$(echo ${LATEST_JSON} | jq .assets | jq -r .[].browser_download_url | grep -i ${MATCH})
else
    VERSION_CHECK=$(echo ${RELEASES} | jq -r --arg VERSION "${VERSION}" '.[] | select(.tag_name==$VERSION) | .tag_name')
    if [ "${VERSION}" == "${VERSION_CHECK}" ]; then
        DOWNLOAD_URL=$(echo ${RELEASES} | jq -r --arg VERSION "${VERSION}" '.[] | select(.tag_name==$VERSION) | .assets[].browser_download_url' | grep -i ${MATCH})
    else
        echo -e "defaulting to latest release"
        DOWNLOAD_URL=$(echo ${LATEST_JSON} | jq .assets | jq -r .[].browser_download_url)
    fi
fi


echo -e "Downloading ClassiCube version ${VERSION}"
echo -e "Download URL is ${DOWNLOAD_URL}"

curl -ssL -o mcgalaxy.zip ${DOWNLOAD_URL}

unzip -j mcgalaxy.zip
rm mcgalaxy.zip
chmod +X *.dll *.exe

## install end
echo "-----------------------------------------"
echo "Installation completed..."
echo "-----------------------------------------"