diff --git a/README.md b/README.md index 213aa7c..4af34d3 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ One of the most useful functions of this lib is that it implements the network c allows you to construct, send, receive, and parse network packets. All of them are encapsulated in `go-mc/net` and `go-mc/net/packet`. -这个库最核心的便是实现了Minecraft底层的网络通信协议,可以用与构造、发送、接收和解读MC数据包。这是靠 `go-mc/net` 和 `go-mc/net/packet`这两个包实现的。 +这个库最核心的便是实现了Minecraft底层的网络通信协议,可以用于构造、发送、接收和解读MC数据包。这是靠 `go-mc/net` 和 `go-mc/net/packet`这两个包实现的。 ```go import "github.com/Tnze/go-mc/net" diff --git a/examples/frameworkServer/main.go b/examples/frameworkServer/main.go index 6a66f5a..c3e6005 100644 --- a/examples/frameworkServer/main.go +++ b/examples/frameworkServer/main.go @@ -38,8 +38,8 @@ func main() { log.Fatalf("Load chunks fail: %v", err) } - commands := server.NewCommandGraph() - handleFunc := func(args []command.ParsedData) error { + commands := command.NewGraph() + handleFunc := func(ctx context.Context, args []command.ParsedData) error { log.Printf("Command: args: %v", args) return nil }