feat: support kick
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user