#!/bin/bash
#
# Settings file for minecraft-init
# ================================
# 
# Make a copy of this file named config
# and edit the variables to your needs.
#

# Name of server.jar to use
SERVICE="sponge-1.8-1371-2.1DEV-0.jar"

# Name to use for the screen instance
SCREEN="sos"

# User that should run the server
USERNAME="minecraft"

# Path to minecraft server directory 
MCPATH="/home/minecraft/servers/SoS"

# Where the worlds are located on the disk.
WORLDSTORAGE="${MCPATH}/worlds"

# Number of CPUs/cores to use
CPU_COUNT=3

# Initial memory usage
INITMEM="5G"

# Maximum amount of memory to use
# Remember: give the ramdisk enough space, subtract from the total amount
# of RAM available the size of your map and the RAM-consumption of your base system.
MAXMEM="10G"

# Whether to output commands for the plugin ConsoleLikeChat ($1 is the command to run)
FORMAT='$1'

# Things to leave alone ;)
# =====================

INVOCATION="java -Xmx$MAXMEM -Xms$INITMEM -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalPacing -XX:ParallelGCThreads=$CPU_COUNT -XX:+AggressiveOpts -jar $SERVICE run"
