Colgate / MC-CLI

Command-Line-Interface for bukkit servers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MC-CLI

Command-Line-Interface for bukkit servers

###Description### This is a simple sh/bash script I wrote to control bukkit servers in a Linux environment. Basic commands include

  • start - Can either start or send .unhold to the server, depending on if the script finds the process running.
  • stop - Sends .hold to the server.
  • attach - Attach to the current screen the server is running on.
  • restart - Sends the commands to restart the server.
  • reload - Sends the command to reload the server files.
  • send - Sends a command to be executed through the console.
  • kill - Sends .stopwrapper and completely ends the mc server processes.
  • status - Prints basic server status information

###System Requirements### To run this script, you will need the following

###Installation Instructions###

  1. Copy the contents of mccli.sh to the /sbin/ directory. You can name this file anything you want (on my server, I named the command "server").
  2. Ensure your directory structure for your server directories is /servers/%SERVERNAME%. Alternatively, you may change this path to wherever your servers are located.
  3. Start your server using the CLI script to ensure the correct process IDs are stored.

###Screenshots###

About

Command-Line-Interface for bukkit servers


Languages

Language:Shell 100.0%