Skip to content

Hanger is a CLI tool to help you manage your minecraft servers.

License

Notifications You must be signed in to change notification settings

ThatOneToast/Hanger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hanger

Hanger is a powerful Lua-based command-line interface for managing Minecraft servers efficiently and effectively. It simplifies server management allowing for quick access to commands and easy management of multiple servers under a node.

Features

-Standard Server Management: Create, start, stop, and manage multiple servers with just a few commands.
-Plugin Management: Add and remove plugins from your server's plugins folder on the fly.
-Status Checking: Get the status of your server and check if it's online or offline.
MC Commands: Send any minecraft command to your server.

Commands

  • info:

    • --CommandName <command-name>: The name of the command to get information about.
  • daemon:

    • --start: Starts the daemon service.
    • --stop: Stops the daemon service.
    • --connect <ip>: Connects to the daemon service at the specified IP.
  • create <ServerName> <Version> <ServerIP> <ServerPort> <RconPort> <RconPassword> [--rcon-broadcast]: Creates a new server instance with the specified name and Minecraft version.

  • delete <ServerName>: Deletes the specified server instance.

  • manage <ServerName>:

    • --start ( --min-ram 1G --max-ram 1G ): Starts the specified server instance.
    • --stop: Stops the specified server instance.
    • --status: Gets the status of the specified server instance.
    • --add-plugin <file_path>: Adds a plugin to the specified server instance.
    • --remove-plugin <plugin_name>: Removes a plugin from the specified server instance.
    • --custom <command>: Sends a custom command to the specified server instance.

Current Limitations

  • Single Connection: Currently, the CLI supports managing only one connection to a node at a time. Efforts are underway to enable support for managing multiple nodes concurrently.

Installing

  • Clone the repository
  • Install lua 5.3 or higher "Download Here"
  • Install luarocks "Download Here"
  • Install the required dependencies in the src/requirements.txt file with luarocks luarocks install <package-name>

Running

  • All commands can be ran by executing the Hanger.lua file. For example, to start the daemon service, run lua Hanger.lua daemon --start.

  • If you create a bash script executing the cli, the storage file will be created in the same directory as the script.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Hanger is a CLI tool to help you manage your minecraft servers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published