Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JoinServer ¶
JoinServer tries to mark the server has joined on mojang's session servers using the passed profile and bytes (as the server hash). The hash is normally the serverID + secret key + public key.
Types ¶
type Profile ¶
Profile contains information about the player required to connect to a server
func Login ¶
Login tries to login using the passed username (or email) and password and returns the complete profile. error is non-nil if the login fails.
func Refresh ¶
Refresh attempts to refresh the passed profile's accessToken for futher use. The passed token should be the same as the one passed to Login.
func (Profile) IsComplete ¶
IsComplete returns whether the profile is enough to connect with.
Click to show internal directories.
Click to hide internal directories.