feat: support kick

This commit is contained in:
Vaala Cat
2023-06-19 19:21:26 +08:00
parent e516a51ebe
commit f0c2083bd7
16 changed files with 447 additions and 87 deletions

View File

@@ -9,3 +9,14 @@ func GetAlivePlayer() string {
}
return ans
}
func GetAlivePlayerList() []string {
ans := []string{}
for _, v := range conf.PlayerList.PlayerInfos {
if v.Name == conf.GetBotSettings().MCBotName {
continue
}
ans = append(ans, v.Name)
}
return ans
}