Skip to content

Commit

Permalink
Merge pull request #3 from HoodedDeath/master
Browse files Browse the repository at this point in the history
Add rcon_password to rcon_cmd and docker call
  • Loading branch information
nathanielc authored Feb 23, 2021
2 parents 7ce24fa + becb96a commit 1d905b0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/minecraftctl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ RCON_CMD="mcrcon -P ${RCON_PORT}"
if [ -n "$RCON_PASSWORD" ]
then
RCON_CMD="${RCON_CMD} -p ${RCON_PASSWORD}"
else
RCON_CMD="${RCON_CMD} -p minecraft"
fi

# Default max java heap size in MB
Expand Down Expand Up @@ -82,6 +84,7 @@ start() {
$vol_mount \
-p $PORT:25565 \
-p $RCON_PORT:25575 \
-e "RCON_PASSWORD=${RCON_PASSWORD}" \
-e "JVM_OPTS=-Xmx${MAXHEAP}M -Xms${MINHEAP}M -D${name}" \
-e "JVM_XX_OPTS=${EXTRA_JVM_OPTS}" \
-e "EULA=$EULA" \
Expand Down

0 comments on commit 1d905b0

Please sign in to comment.