Skip to content
Open
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
6 changes: 3 additions & 3 deletions papermc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ MC_VERSION="${MC_VERSION,,}"
PAPER_BUILD="${PAPER_BUILD,,}"

# Get version information and build download URL and jar name
URL='https://papermc.io/api/v2/projects/paper'
URL='https://api.papermc.io/v2/projects/paper'
if [[ $MC_VERSION == latest ]]
then
# Get the latest MC version
Expand All @@ -33,7 +33,7 @@ then
# Remove old server jar(s)
rm -f *.jar
# Download new server jar
wget "$URL" -O "$JAR_NAME"
wget "$URL"
fi

# Update eula.txt with current setting
Expand All @@ -42,7 +42,7 @@ echo "eula=${EULA:-false}" > eula.txt
# Add RAM options to Java options if necessary
if [[ -n $MC_RAM ]]
then
JAVA_OPTS="-Xms${MC_RAM} -Xmx${MC_RAM} $JAVA_OPTS"
JAVA_OPTS="-Xms1G -Xmx${MC_RAM} $JAVA_OPTS"
fi

# Start server
Expand Down