// 获取玩家完整星标信息
var starInfo = XMPlayerAdmin?.Call("API_GetPlayerStarInfo", player.UserIDString) as Dictionary<string, object>;
if (starInfo != null)
{
// 获取星标类型名称
string starType = starInfo["type"].ToString(); // "红星标", "黄星标", "蓝星标", "绿星标", "无星标"
// 获取星标等级
int starLevel = (int)starInfo["level"]; // 4, 3, 2, 1, 0
// 检查是否有星标
bool hasStar = (bool)starInfo["hasStar"]; // true 或 false
// 根据需要使用不同的信息
if (hasStar)
{
PrintToChat(player, $"你的星标等级是:{starType}(等级{starLevel})");
}
else
{
PrintToChat(player, "你还没有星标");
}
}