feat: support kick

This commit is contained in:
Vaala Cat committed 2023-06-19 19:58:20 +08:00
1 parent 730aea3e3b
commit c278b3f516
16 files changed
+447 -90

No files matched your search

+11
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
}