Doesn't convert UUID to string in ChatMsg event.
This commit is contained in:
@ -2,6 +2,7 @@ package main
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"github.com/google/uuid"
|
||||
"log"
|
||||
|
||||
"github.com/Tnze/go-mc/bot"
|
||||
@ -38,7 +39,7 @@ func onGameStart() error {
|
||||
return nil //if err isn't nil, HandleGame() will return it.
|
||||
}
|
||||
|
||||
func onChatMsg(c chat.Message, pos byte, uuid string) error {
|
||||
func onChatMsg(c chat.Message, pos byte, uuid uuid.UUID) error {
|
||||
log.Println("Chat:", c.ClearString()) // output chat message without any format code (like color or bold)
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user