Skip to main content

Custom Statistics

The stats module allows you to define additional statistics displayed in the chat as part of the match summary at the end of a match. Any expressions can be used as a statistic.

ElementDescription
<stats> </stats>Node containing all the defined statistics.
Sub-elements
<stat> </stat>An individual statistic.

Stat Attributes

AttributeDescriptionValue
nameThe name of this statistic.Formatted Text
valueThe calculated result of the expression to display as a statistic.Expression

Examples

<stats>
<!-- "player_score" is a custom variable -->
<stat name="`6Goals" value="player_score"/>

<!-- "player.health" and "player.food" are built-in variables -->
<stat name="Most Healthy" value="player.health + player.food"/>
</stats>