修改统计变量
小于 1 分钟
统计数据模块的变量
修改- 如实现玩家花费游戏币赎罪(减少击杀次数)等
/// <reference path="./PixelFaramitaLuminousPolymerization/scripts/node_modules/@pf/index.d.ts" />
/// <reference path="A:/Documents/GitHub/HelperLib/src/index.d.ts" />
mc.listen("onServerStarted", () => {
//获取
//var info = $pf.Api.Statistics.GetPlayerStatistics("2535445286243008");
//$pf.log(JSON.stringify(info, null, 2));
//设定
$pf.Api.Statistics.SetPlayerStatistics("2535445286243008", {
OnlineTime: 233,
});
});