GPL3 Licensed.
Mineserver uses a file called config
stored in the same directory as the
script for configuration. These should be defined by the user before the first
run. The file is interpreted by sourcing it in bash via source config
and
therefore should be valid bash.
#Location of all servers, should be an absolute path to avoid confusion.
SERVERS=
#The server jar name. Used to start the server and identify directories that contain servers.
SERVER_JAR=minecraft_server.jar
#Location of the servers backup, should be an absolute path to avoid confusion.
BACKUP_DIR=
#Flags for the java virtual machine
JVM_FLAGS=-Xms1024M -Xmx1024M
#Flags for the minecraft server
MC_FLAGS=nogui
SERVERS should point to the directory where Minecraft servers are stored.
SERVER_JAR is the name of the minecraft server jar file.
BACKUP_DIR should specify the directory where backup archives will be stored.
JVM_FLAGS and MC_FLAGS are command line arguments to be passed to the java virtual machine and the minecraft server respectively.
USAGE:
The script will execute all the flags provided in the command line sequentially.
program options server_name
options:
-h help
-R remove server
-r restore server
-b backup server
-s start server (creates one if missing)
-S summary of last log (joins, unique joins, kicks, bans, chat replies)
-l list servers
-u update server
Example:
./Server -sb our_sever
This will run the server and then back it up when it is stopped.