Question How apply a temporary custom effect to player?

  • After careful consideration and due to limited usage, we’ve made the decision to discontinue the PaperMC forums. Moving forward, we recommend using Hangar for plugin uploads, and for all other community discussions and support, please join us on Discord.

_Iuri

New member
Jan 16, 2022
22
4
3
Well, i did my own implementations of enchantments and it works very very well, but the problem now is the following:

I created an enchantment that increase your movement speed till 100%. And now i need a counter enchantment that will temporary reduce the victim's movement speed when him receive damage with a weapon with this enchantment.

So, in view of this situation, i need apply a temporary and refreshable custom effect to the victim. Is there a way to do this? If not, which be the best way to implement this?

🇦🇷 Thanks in advance ñ_ñ