Spigot minecraft server in a container
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

11 lines
308 B

#!/bin/sh -x
MEMLIMIT=${MEMLIMIT:-2G}
JAVAARGS=${JAVAARGS:-""}
test ! -f /srv/spigot/spigot.jar && cp /srv/spigot-default/spigot.jar /srv/spigot/
test ! -f /srv/spigot/eula.txt && cp /srv/spigot-default/eula.txt /srv/spigot/
cd /srv/spigot/
exec java -Xmx$MEMLIMIT $JAVAARGS -jar spigot.jar --nojline $@