fix the login mistake of the example
This commit is contained in:
@ -48,7 +48,8 @@ func ExampleClient_JoinServer_online() {
|
|||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
c.Name = auth.SelectedProfile.Name
|
c.Name = auth.SelectedProfile.Name
|
||||||
c.AsTk = auth.SelectedProfile.ID
|
c.Auth.UUID = auth.SelectedProfile.ID
|
||||||
|
c.AsTk = auth.AccessToken
|
||||||
|
|
||||||
//Connect server
|
//Connect server
|
||||||
err = c.JoinServer("localhost", 25565)
|
err = c.JoinServer("localhost", 25565)
|
||||||
|
Reference in New Issue
Block a user