-
Notifications
You must be signed in to change notification settings - Fork 2
StatsManager API command
XiaoColorful edited this page Mar 22, 2026
·
1 revision
IStatsManager
/battleroyale api statsManager [...]
/battleroyale api statsManager shouldRecordStats
-
返回值:是否记录统计数据
/battleroyale api statsManager isInRecordGamePlayers byPlayer [player]
/battleroyale api statsManager isInRecordGamePlayers byId [id]
- player:用实体选择器选中并获取游戏玩家
- id:用游戏玩家ID获取游戏玩家
- 若不存在对应的游戏玩家,
返回值为 0 -
返回值:是否在记录的游戏玩家中
/battleroyale api statsManager saveStats [filePath]
立即保存统计数据
- filePath:保存的文件路径
-
返回值:1
IStatsManager
/battleroyale api statsManager [...]
/battleroyale api statsManager shouldRecordStats
-
return value: whether to record the statistics of the game
/battleroyale api statsManager isInRecordGamePlayers byPlayer [player]
/battleroyale api statsManager isInRecordGamePlayers byId [id]
- player: selects game player using an entity selector
- id: selects game player using a game player ID
- if the game player does not exist, the
return valueis 0 -
return value: whether the player is in the record game players list
/battleroyale api statsManager saveStats [filePath]
Immediately saves the statistics:
- filePath: the file path to save to
-
return value: 1
🌐 Language / 语言
-
- Configuration Introduction
- Command Introcuction
- Game type introduction
- About
- Mod development tutorial