Skip to content
/ mctl Public

Minecraft server controller and plugin manager

License

Notifications You must be signed in to change notification settings

jgeboski/mctl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MCTL

MCTL is a python tool for automating and reducing the operational cost of running Minecraft servers. MCTL provides a number of features:

  • Management (starting and stopping) of one or more servers.
  • Plugin management (building, updating, and snapshotting).
  • Fake server when the main server is offline, showing a status message.
  • All of this wrapped up in an easy to use CLI.

Installing

Dependencies

Fedora

$ sudo dnf copr enable jgeboski/mctl
$ sudo dnf install mctl
$ mkdir -p ~/.mctl
$ cp /usr/share/doc/mctl/config.yml ~/.mctl

Manually (Linux)

$ mkdir -p ~/.mctl ~/bin
$ git clone https://github.com/jgeboski/mctl.git ~/.mctl/source
$ ln -sf ~/.mctl/source/mctl.py ~/bin/mctl
$ chmod +x ~/bin/mctl
$ cp ~/.mctl/source/config.yml ~/.mctl
$ echo PATH=\"\$PATH:\$HOME/bin\" >> ~/.bashrc
$ . ~/.bashrc

Usage

Make sure to configure MCTL in ~/.mctl/config.yml before proceeding!

Showing help

$ mctl --help
$ mctl <command> --help

Listing servers and packages

$ mctl servers
$ mctl packages

Starting a server

$ mctl start -s <server name>

Stopping a server

$ mctl stop -s <server name> -m "<Reason for stopping>"

Restarting a server

$ mctl restart -s <server name> -m "<Reason for restarting (ex: updating plugins)>"

Updating packages

$ mctl build --all-packages
$ mctl upgrade -s <server name> --all-packages
$ mctl restart -s <server name> -m "Updating server packages"

Stopping a server, starting the fake server

$ mctl stop -s <server name> -m "<Reason for stopping>" -k

Starting the fake server by itself

$ mctl start -s <server name> -m "<Reason for the server being down>" -k

Stopping the fake server

$ mctl stop -s <server name>

Debugging

$ mctl -d <command>

About

Minecraft server controller and plugin manager

Resources

License

Stars

Watchers

Forks

Packages

No packages published