Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConnector ¶
Types ¶
type Client ¶
type Client interface {
// Connect establishes a connection to the server.
Connect() error
// Players returns the players on the scoreboard.
Players() ([]string, error)
// Scores return the objective scores for a player.
Scores(player string) ([]Score, error)
}
Client is a client for the Minecraft server.
type Connection ¶
Connection is an established connection to the Minecraft server.
type Connector ¶
type Connector interface {
// Connect establishes a connection to the server.
Connect() (Connection, error)
}
Connector is used to create connections to the Minecraft server.
type Minecraft ¶
type Minecraft struct {
Server string `toml:"server"`
Port string `toml:"port"`
Password string `toml:"password"`
// contains filtered or unexported fields
}
Minecraft is the plugin type.
func (*Minecraft) Description ¶
func (*Minecraft) SampleConfig ¶
Click to show internal directories.
Click to hide internal directories.