Hello firstly sorry for my bad english I use translator , I have created a level and attribute mod, the level system works with the vanilla mc system when the player increases by one level he gains +1 life and an attribute point when the player increases the level attribute of life it gains 2 life in addition until the all works however I try to make it compatible with a plugin named "My items" the system of life of this plugin replaces the system of life of my mod example:
The bar of life of the player when he does not have the helmet equipped with the system of life of my mod:
The life bar of the player when he equips the helmet with stats of life and more (stats of the plugin):
as you can see the plugin life system replaces my system the player only have 15 more life , he is supposed to have 24 more life ...
I have contacted the creator of the plugin to ask him the sources of his plugin for modifying the sources to add the lives of the two systems , however he explained to me that his plugin works with a library "AgarthaLib" and he told me says that there is an event named "PlayerHealthMaxChangeEvent" and that I can directly add the maximum life of my mod when the event is called however I have no idea how to do it ...
Is it possible to use a Spigot library on Forge?
Thank you in advance for those who can give me reasoning.