Changelog v4.14.0:
#Fixed: ClassCastException when calculating PhantomStats for MC 1.20.2.
By switching back to the Bukkit Consumer I reintroduced the ClassCastException. However, now everything should be working as expected while remaining backwards compatibility. Sorry for any inconveniences.
Best regards
Alex_qp
PS: Thanks again to
@paulravensky for reporting the bug.