package
Version:
v1.6.0
Opens a new window with list of versions in this module.
Published: Jul 22, 2020
License: MIT
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func AddtoConfig(auth *Player)
AddtoConfig is used to update the config file with a provided profile
Authlogin is used when you need to login with passwd
Checkrealms can get IP of the realm so that you can login in realms
Configrm means remove-mode
Directlogin is used to load config and login according to the uuid
func LoadConfiglogin(auth *Player)
LoadConfiglogin can load config and ask you to choose a profile and login
type Config struct {
Players []Player `json:"players"`
}
Config used to restore config in the program
Loadconf is used to load Config from file
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.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.