feat: add get users
This commit is contained in:
11
services/utils/mc.go
Normal file
11
services/utils/mc.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package utils
|
||||
|
||||
import "tg-mc/conf"
|
||||
|
||||
func GetAlivePlayer() string {
|
||||
ans := "当前在线玩家:\n"
|
||||
for _, v := range conf.PlayerList.PlayerInfos {
|
||||
ans += v.Name + "\n"
|
||||
}
|
||||
return ans
|
||||
}
|
||||
Reference in New Issue
Block a user