mclogin

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddtoConfig

func AddtoConfig(auth *Player)

AddtoConfig is used to update the config file with a provided profile

func Authlogin

func Authlogin(account, authserver *string, auth *Player)

Authlogin is used when you need to login with passwd

func Checkrealms

func Checkrealms(ip *string, port *int, c *bot.Client, version *string, auth *Player) error

Checkrealms can get IP of the realm so that you can login in realms

func Configrm

func Configrm()

Configrm means remove-mode

func Directlogin

func Directlogin(uuid string, auth *Player)

Directlogin is used to load config and login according to the uuid

func LoadConfiglogin

func LoadConfiglogin(auth *Player)

LoadConfiglogin can load config and ask you to choose a profile and login

Types

type Config

type Config struct {
	Players []Player `json:"players"`
}

Config used to restore config in the program

func Loadconf

func Loadconf() Config

Loadconf is used to load Config from file

type Player

type Player struct {
	Name       string     `json:"name"`
	UUID       string     `json:"UUID"`
	Tokens     ygg.Tokens `json:"Tokens"`
	Account    string     `json:"account"`
	Authserver string     `json:"authserver"`
	Authmode   string     `json:"authmode"`
}

Player is a profile of aplayer.

Jump to

Keyboard shortcuts

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