Skip to content

Instantly share code, notes, and snippets.

@jbott jbott/init.sh
Created Jun 19, 2015

Embed
What would you like to do?
Minecraft init script for tmux
#!/bin/sh
# Go to script directory
BINDIR=$(dirname "$(readlink -fn "$0")")
cd "$BINDIR"
### Configuration ###
XMS="1G"
XMX="1G"
JAR="minecraft_server.jar"
JAVA_BIN="../java/jdk1.8.0_45/bin"
### Start ###
tmux new -s vanilla "export PATH=$PATH:${JAVA_BIN} && java -Xms${XMS} -Xmx${XMX} -jar ${JAR} nogui"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.