feat: support ban and kick

This commit is contained in:
Vaala Cat
2023-08-28 17:22:04 +08:00
parent 5528766c13
commit b023de86ee
7 changed files with 67 additions and 14 deletions

View File

@@ -63,7 +63,7 @@ func SendMsg(msg string) {
func SendMsgToPlayer(msg string, playerName string) {
go func() {
err := sendCommand(fmt.Sprintf("tell %s %s", playerName, msg))
err := SendCommand(fmt.Sprintf("tell %s %s", playerName, msg))
if err != nil {
logrus.Error("send msg to player error: ", err)
}