A Modern and Lightweight Player Stat Management Plugin for Minecraft Servers
- Core Player Stats: Health, Defense, Strength, Speed, Crit Chance, Crit Damage, Base Damage, Damage Multiplier, Mending
⚠️ Wisdom stat interaction is currently in development
Player attributes are computed using a centralized Total Aggregator system:
- Extensible API: Provides interfaces/abstract classes for plugins to implement custom Sub-Aggregators
- Attribute Compilation:
- Total Aggregator collects data from all registered Sub-Aggregators
- Sums values from all contributors
- Updates cached player attributes
- Event-Driven Updates:
- Triggers
AttributeUpdateEventcontaining:- Player instance
- Full attribute bundle
- Allows attribute listeners to dynamically update player state (movement speed, health, etc.)
- Triggers
- Dynamic Synchronization: Enables custom listeners to react to real-time stat changes
The example of data contributor can be found here.