minecraft

package
v0.0.0-...-94a378c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientBuilder

type ClientBuilder func(*config.Config) (mcclient.MinecraftClient, error)

ClientBuilder creates new minecraft clients from a config

type PlayerInfo

type PlayerInfo struct {
	Name string `json:"name" firestore:"name"`
	UUID string `json:"uuid" firestore:"uuid"`
}

PlayerInfo represents a minecraft player

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(serverDir string) (*Server, error)

NewServer creates a new client connection to a minecraft server

func (*Server) GetServerInfo

func (srv *Server) GetServerInfo() interface{}

type ServerInfo

type ServerInfo struct {
	MotD   string `json:"motd" firestore:"motd"`
	Online bool   `json:"online" firestore:"online"`

	Version       string       `json:"version" firestore:"version"`
	Icon          string       `json:"icon" firestore:"icon"`
	MaxPlayers    int          `json:"max_players" firestore:"max_players"`
	OnlinePlayers int          `json:"online_players" firestore:"online_players"`
	Players       []PlayerInfo `json:"players" firestore:"players"`
}

ServerInfo provides information about a minecraft server

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL