添加了一些注释和例子

This commit is contained in:
JunDao
2019-05-17 14:10:52 +08:00
parent db9dbc7e76
commit 94fb6502db
7 changed files with 107 additions and 18 deletions

View File

@ -12,11 +12,11 @@ func main() {
// For online-mode, you need login your Mojang account
// and load your Name and UUID to client:
//
// auth, err := authenticate.Authenticate(Your E-mail", "Your Password")
// if err != nil {
// panic(err)
// }
// c.Name, c.AsTk = auth.SelectedProfile.Name, auth.SelectedProfile.ID
// auth, err := authenticate.Authenticate(Your E-mail", "Your Password")
// if err != nil {
// panic(err)
// }
// c.Name, c.AsTk = auth.SelectedProfile.Name, auth.SelectedProfile.ID
//Login
err := c.JoinServer("localhost", 25565)