ghzgqx / mc

A .sh to control Minecraft server on Linux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Normal

mc - A .sh to control Minecraft server on Linux

Usage

usage [start]|[stop]|[restart]|[shell]|[du]|[backup ([do]|[log]|[rec ([commit id])]|[gc])]

#How to use You may need to chmod it at first
chmod +x mc
You can also put it in /usr/bin after you set all vars according to your own path.

Var for user set

In file “mc”
$mcdir The path that Minecraft Server in.
$screenname The name of screen to run Minecraft Server.
$startupscript The path of startup scripts(relative to $mcdir, usually a sh file,you can also set it as a command).
$backupscript The path of backup scripts(use git commit to backup server files,you can use crontab for autobackup).

#Other The startup scrpit usually be like this:
java -Xmx900M -Xms300M -jar serverfilename.jar nogui

You can create a git repo with command:
mc backup init

License

版权没有 盗版不究 随便改随便发 反正就一个sh

About

A .sh to control Minecraft server on Linux