chat package will not ignore the translate message now, but return the row msg.
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
package bot
|
||||
|
||||
import (
|
||||
"github.com/Tnze/go-mc/authenticate"
|
||||
"github.com/Tnze/go-mc/yggdrasil"
|
||||
"log"
|
||||
)
|
||||
|
||||
@ -43,7 +43,7 @@ func ExampleClient_JoinServer_online() {
|
||||
c := NewClient()
|
||||
|
||||
//Login Mojang account to get AccessToken
|
||||
auth, err := authenticate.Authenticate("Your E-mail", "Your Password")
|
||||
auth, err := yggdrasil.Authenticate("Your E-mail", "Your Password")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
@ -159,7 +159,7 @@ func loginAuth(AsTk, name, UUID string, shareSecret []byte, er encryptionRequest
|
||||
},
|
||||
)
|
||||
if err != nil {
|
||||
return fmt.Errorf("create request packet to authenticate faile: %v", err)
|
||||
return fmt.Errorf("create request packet to yggdrasil faile: %v", err)
|
||||
}
|
||||
|
||||
PostRequest, err := http.NewRequest(http.MethodPost, "https://sessionserver.mojang.com/session/minecraft/join",
|
||||
|
Reference in New Issue
Block a user