Categorygithub.com/jaredallard/minecraft-preempt
repository
3.2.0
Repository: https://github.com/jaredallard/minecraft-preempt.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

minecraft-preempt

A lightweight Minecraft server manager. Starts a server when users join, and stops them when they leave.

Supported Clouds

  • gcp
  • docker

Usage

Hint: There's an example configuration in ./config.

First, define a configuration file for your server. The format is like so:

Top level

KeyDescription
listenAddressThe address to listen on.
serversArray of all servers

Server

KeyDescription
hostnameThe hostname of the server.
listenAddressThe address to listen on.
gcpThe GCP configuration
dockerThe Docker configuration
whitelistList of users allowed to connect

Cloud Configurations

GCP

KeyDescription
projectThe GCP project ID
zoneThe GCP zone
instanceThe GCP instance name

Docker

KeyDescription
containerIDContainer ID or name

Specifying a configuration can be done with --config, for a file path. Or, for serverless environments, the config can be specified with the CONFIG environment variable.

License

GPL-3.0