delete outdated comments
This commit is contained in:
@ -12,14 +12,6 @@ import (
|
|||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
c := bot.NewClient()
|
c := bot.NewClient()
|
||||||
// For online-mode, you need login your Mojang account
|
|
||||||
// and load your Name and UUID to client:
|
|
||||||
//
|
|
||||||
// auth, err := yggdrasil.Authenticate("Your E-mail", "Your Password")
|
|
||||||
// if err != nil {
|
|
||||||
// panic(err)
|
|
||||||
// }
|
|
||||||
// c.Name, c.Auth.UUID, c.AsTk = auth.SelectedProfile.Name, auth.SelectedProfile.ID, auth.AccessToken
|
|
||||||
|
|
||||||
//Login
|
//Login
|
||||||
err := c.JoinServer("localhost", 25565)
|
err := c.JoinServer("localhost", 25565)
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
# mcping
|
# mcping
|
||||||
适用于Minecraft: Java Edition的ping工具
|
适用于Minecraft: Java Edition的ping工具
|
||||||
|
|
||||||
|
Install with go tools:
|
||||||
|
```go install github.com/Tnze/go-mc/cmd/mcping```
|
||||||
|
|
||||||
Install with Homebrew:
|
Install with Homebrew:
|
||||||
```brew tap Tnze/tap && brew install mcping```
|
```brew tap Tnze/tap && brew install mcping```
|
||||||
|
|
||||||
|
1
go.mod
1
go.mod
@ -5,4 +5,5 @@ go 1.12
|
|||||||
require (
|
require (
|
||||||
github.com/google/uuid v1.1.1
|
github.com/google/uuid v1.1.1
|
||||||
github.com/mattn/go-colorable v0.1.2
|
github.com/mattn/go-colorable v0.1.2
|
||||||
|
github.com/satori/go.uuid v1.2.0 // indirect
|
||||||
)
|
)
|
||||||
|
2
go.sum
2
go.sum
@ -4,5 +4,7 @@ github.com/mattn/go-colorable v0.1.2 h1:/bC9yWikZXAL9uJdulbSfyVNIR3n3trXl+v8+1sx
|
|||||||
github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
|
github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
|
||||||
github.com/mattn/go-isatty v0.0.8 h1:HLtExJ+uU2HOZ+wI0Tt5DtUDrx8yhUqDcp7fYERX4CE=
|
github.com/mattn/go-isatty v0.0.8 h1:HLtExJ+uU2HOZ+wI0Tt5DtUDrx8yhUqDcp7fYERX4CE=
|
||||||
github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
|
github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
|
||||||
|
github.com/satori/go.uuid v1.2.0 h1:0uYX9dsZ2yD7q2RtLRtPSdGDWzjeM3TbMJP9utgA0ww=
|
||||||
|
github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0=
|
||||||
golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223 h1:DH4skfRX4EBpamg7iV4ZlCpblAHI6s6TDM39bFZumv8=
|
golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223 h1:DH4skfRX4EBpamg7iV4ZlCpblAHI6s6TDM39bFZumv8=
|
||||||
golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||||
|
Reference in New Issue
Block a user