Statistic
This is a provider that provides statistic values of a player to the Top Holder.
Format
yaml
holders:
<holder-name>:
# The type of the provider
type: statistic
# The name of the statistic
statistic: <statistic>
# The name of the material. Used for some statistics that require an item.
material: <material>
# The name of the entity. Used for some statistics that require an entity.
entity: <entity>Behavior
If the
statisticis a Generic type, thematerialandentityfields are ignored. The provider will return the value of the statistic for the player.If the
statisticis a Material type, thematerialfield will be used:- If the
materialis not specified, the provider will return the value of the statistic for all materials. - If the
materialis specified, the provider will return the value of the statistic for the specified material. - The
materialfield can be a string or a list of strings.
- If the
yaml
material: STONE
material:
- STONE
- COBBLESTONE- If the
statisticis an Entity type, theentityfield will be used:- If the
entityis not specified, the provider will return the value of the statistic for all entities. - If the
entityis specified, the provider will return the value of the statistic for the specified entity. - The
entityfield can be a string or a list of strings.
- If the
yaml
entity: ZOMBIE
entity:
- ZOMBIE
- SKELETONExample
yaml
holders:
jump:
type: statistic
statistic: JUMP