mirror of
https://github.com/YatopiaMC/Yatopia.git
synced 2024-12-25 18:48:19 +01:00
6866737d61
Also added a few more commands and a new script.
23 lines
997 B
Bash
23 lines
997 B
Bash
#!/usr/bin/env bash
|
|
|
|
# SCRIPT HEADER start
|
|
echo " "
|
|
echo "----------------------------------------"
|
|
echo " $(bashcolor 1 32)Task$(bashcolorend) - Install remapped jar"
|
|
echo " This will install the minecraft-server dependency in your maven local repository"
|
|
echo " Use this only if you have dependency issues with it"
|
|
echo "----------------------------------------"
|
|
# SCRIPT HEADER end
|
|
|
|
PS1=$
|
|
basedir=$(pwd)
|
|
|
|
minecraftversion=$(cat "$basedir/Tuinity/Paper/work/BuildData/info.json" | grep minecraftVersion | cut -d '"' -f 4)
|
|
jarpath="$basedir/Tuinity/Paper/work/Minecraft/$minecraftversion"
|
|
|
|
cd "$basedir/Tuinity/Paper/work/CraftBukkit" || exit 1 # Need to be in a directory with a valid POM otherwise maven complains
|
|
mvn install:install-file -q -Dfile="$jarpath-mapped.jar" -Dpackaging=jar -DgroupId=io.papermc -DartifactId=minecraft-server -Dversion="$minecraftversion-SNAPSHOT"
|
|
if [ "$?" != "0" ]; then
|
|
echo "Failed to install minecraft-server dependency"
|
|
exit 1
|
|
fi |