Support chat validation

This commit is contained in:
Tnze
2023-01-01 18:43:21 +08:00
parent fa83b762bf
commit bb98d90db3
9 changed files with 239 additions and 152 deletions

View File

@ -3,5 +3,5 @@ package msg
import "github.com/Tnze/go-mc/chat"
type EventsHandler struct {
PlayerChatMessage func(msg chat.Message) error
PlayerChatMessage func(msg chat.Message, validated bool) error
}