TriggerStats not functioning

Summary

Upon adding a TriggerStat to a custom stat, the plugin breaks.

Steps to reproduce

If you add TriggerStats to a stat, syntax copied from the wiki, it breaks the game. This config works without adding TriggerStats.

https://pastebin.com/avtkSM0p

Current behavior

The stat doesnt work and throws massive errors upon taking entity damage.

Intended correct behavior

It should function how the wiki displays it, where the formula can be used in the damageformula

Server log file

https://pastebin.com/DF7c2sfV

Debug log snippet

https://pastebin.com/DF7c2sfV

Proposed fixes

Make it function like it says it does on the Wiki, oh and can you add a chance feature to a stat so i can make a proc-ing damage stat?

Assignee Loading
Time tracking Loading