add configuration support for /server packet

This commit is contained in:
Tnze
2023-11-19 11:25:17 +08:00
parent a5e6acea73
commit 54ffcb2bad
12 changed files with 72 additions and 2668 deletions

View File

@ -17,12 +17,16 @@ type Client struct {
Conn *Conn
Auth Auth
// These are filled when login process
Name string
UUID uuid.UUID
Events Events
LoginPlugin map[string]func(data []byte) ([]byte, error)
ConfigData
// Ingame packet handlers
Events Events
// Login plugins
LoginPlugin map[string]func(data []byte) ([]byte, error)
}
func (c *Client) Close() error {