add: main function
This commit is contained in:
@@ -69,6 +69,11 @@ func (c *Client) SetDifficulty(difficulty string) error {
|
||||
return fmt.Errorf("not implemented")
|
||||
}
|
||||
|
||||
func (c *Client) Say(msg string) error {
|
||||
_, err := c.Execute("/say " + msg)
|
||||
return err
|
||||
}
|
||||
|
||||
// GetServerInfo returns basic server information
|
||||
func (c *Client) GetServerInfo() (string, error) {
|
||||
return c.Execute("version")
|
||||
|
||||
Reference in New Issue
Block a user