feat: add more info for UserCache

This commit is contained in:
zimuya4153
2025-11-09 21:05:53 +08:00
Unverified
parent f352dc2215
commit 1f664c211a
9 changed files with 67 additions and 206 deletions
+3 -3
View File
@@ -1078,12 +1078,12 @@ export class UserCache {
/** 获取玩家信息 */
static getPlayerInfo(
/** 玩家名 或 xuid 或 uuid */
/** 玩家名 或 xuid 或 uuid 或 serverId 或 uniqueId */
playerIdentifier: string
): { Xuid: String, Uuid: string, Name: string } | null;
): { Xuid: string, Uuid: string, Name: string, ServerId: string, ActorUniqueID: string } | null;
/** 获取所有玩家信息 */
static getAllPlayerInfo(): { Xuid: String; Uuid: string; Name: string; }[]
static getAllPlayerInfo(): { Xuid: string, Uuid: string, Name: string, ServerId: string, ActorUniqueID: string }[]
}
type PacketDataItem = (