Doesn't convert UUID to string in ChatMsg event.

This commit is contained in:
Tnze
2020-07-09 13:51:21 +08:00
parent 0b3e6b01d5
commit b22ad870c3
4 changed files with 8 additions and 4 deletions

View File

@ -3,13 +3,14 @@ package bot
import (
"github.com/Tnze/go-mc/bot/world/entity"
"github.com/Tnze/go-mc/chat"
"github.com/google/uuid"
pk "github.com/Tnze/go-mc/net/packet"
)
type eventBroker struct {
GameStart func() error
ChatMsg func(msg chat.Message, pos byte, sender string) error
ChatMsg func(msg chat.Message, pos byte, sender uuid.UUID) error
Disconnect func(reason chat.Message) error
HealthChange func() error
Die func() error