Hi.
I’m trying to cancel the potion effect gain event when the potion is thrown by a party member.
So far i didn’t succeed.
No matter what potion i drink or throw at a target entity, the event doesn’t trigger, am i doing something wrong here?
@Listener(order = Order.FIRST, beforeModifications = true)
public void onPotionChange(ChangeEntityPotionEffectEvent.Gain event) {
plugin.getLogger().info("Potion effect gained");
}
Nothing gets logged in the console