|
| 1 | +#!/bin/sh |
| 2 | + |
| 3 | +################################################################################ |
| 4 | +# Environment settings: |
| 5 | +################################################################################ |
| 6 | +# Comment the following 3 lines, if you want your server running in your local |
| 7 | +# tongue. Leave it like this for an English speaking one. |
| 8 | +################################################################################ |
| 9 | +unset LANG |
| 10 | +unset LC_ALL |
| 11 | +unset MM_CHARSET |
| 12 | + |
| 13 | +################################################################################ |
| 14 | +# Java settings: |
| 15 | +################################################################################ |
| 16 | +# |
| 17 | +################################################################################ |
| 18 | +export JAVA_PATH=/usr/local/openjdk8-jre/bin |
| 19 | +export JAVA_OPTS=-XX:+UseConcMarkSweepGC |
| 20 | +#export JAVA_OPTS=-XX:+UseG1GC -XX:+UseFastAccessorMethods -XX:+OptimizeStringConcat -XX:+AggressiveOpts -XX:MaxGCPauseMillis=10 -XX:hashCode=5 -Dfile.encoding=UTF-8 |
| 21 | + |
| 22 | +################################################################################ |
| 23 | +# Minecraft server: |
| 24 | +################################################################################ |
| 25 | +# The following constants MUST be set to whatever your Minecraft server is |
| 26 | +# using. |
| 27 | +################################################################################ |
| 28 | +export SERVER_ROOT=/home/minecraft |
| 29 | +export SERVER_NAME=mc.jar |
| 30 | +export SERVER_PORT=25565 |
| 31 | +export SERVER_MINRAM=4G |
| 32 | +export SERVER_MAXRAM=8G |
| 33 | +export SERVER_USER=minecraft |
| 34 | +export SERVER_GROUP=minecraft |
| 35 | +export SERVER_START_SCRIPT=setuid/start.sh |
| 36 | + |
| 37 | +################################################################################ |
| 38 | +# GNU Screen utility: |
| 39 | +################################################################################ |
| 40 | +# You only need to modify the following constants if you run several Minecraft |
| 41 | +# server instances on your physical server. |
| 42 | +################################################################################ |
| 43 | +export GNUSCREEN_SESSION=GSSession |
| 44 | +export GNUSCREEN_WINDOW=GSWindow |
| 45 | + |
| 46 | +################################################################################ |
| 47 | +# Server specific: |
| 48 | +################################################################################ |
| 49 | +# The server final start message has a default value. |
| 50 | +# Set the following constant only if you use some other mod that needs it. |
| 51 | +# The example below is for the LOTR mod: |
| 52 | +################################################################################ |
| 53 | +#export SERVER_STARTED_MESSAGE="LOTR: Successfully replaced world info in MiddleEarth" |
| 54 | + |
| 55 | +################################################################################ |
| 56 | +# PermissionsEx plugin: |
| 57 | +################################################################################ |
| 58 | +export DEFAULT_GROUP=UserGroup |
0 commit comments