From 30948a84448515c5cde82a847de6072a2208a6c2 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sun, 2 Feb 2020 11:16:04 +1100 Subject: [PATCH] SPIGOT-5559: Add EntityPotionEffectEvent causes for PATROL_CAPTAIN and WITHER_ROSE By: ShaneBee --- .../bukkit/event/entity/EntityPotionEffectEvent.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/paper-api/src/main/java/org/bukkit/event/entity/EntityPotionEffectEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityPotionEffectEvent.java index d5f8bde3b2..16b5fd279b 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/EntityPotionEffectEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/EntityPotionEffectEvent.java @@ -213,6 +213,10 @@ public class EntityPotionEffectEvent extends EntityEvent implements Cancellable * When all effects are removed due to a bucket of milk. */ MILK, + /** + * When a player gets bad omen after killing a patrol captain. + */ + PATROL_CAPTAIN, /** * When a potion effect is modified through the plugin methods. */ @@ -244,6 +248,10 @@ public class EntityPotionEffectEvent extends EntityEvent implements Cancellable /** * When a villager gets regeneration after a trade. */ - VILLAGER_TRADE + VILLAGER_TRADE, + /** + * When an entity comes in contact with a wither rose. + */ + WITHER_ROSE } }