From eb02a604cdb37274381d4880da5f60deede77b54 Mon Sep 17 00:00:00 2001 From: LoJoSho Date: Fri, 5 Jan 2024 11:34:35 -0600 Subject: [PATCH] clean: ignore cancelled events for SuperVanish --- .../lojosho/hibiscuscommons/hooks/misc/HookSuperVanish.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/me/lojosho/hibiscuscommons/hooks/misc/HookSuperVanish.java b/common/src/main/java/me/lojosho/hibiscuscommons/hooks/misc/HookSuperVanish.java index 13afd8e..0ab7779 100644 --- a/common/src/main/java/me/lojosho/hibiscuscommons/hooks/misc/HookSuperVanish.java +++ b/common/src/main/java/me/lojosho/hibiscuscommons/hooks/misc/HookSuperVanish.java @@ -20,13 +20,13 @@ public class HookSuperVanish extends Hook { super("SuperVanish"); } - @EventHandler(priority = EventPriority.NORMAL) + @EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = true) public void onPlayerVanish(@NotNull PlayerHideEvent event) { HibiscusPlayerVanishEvent newEvent = new HibiscusPlayerVanishEvent(this, event.getPlayer()); Bukkit.getPluginManager().callEvent(newEvent); } - @EventHandler(priority = EventPriority.NORMAL) + @EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = true) public void onPlayerShow(@NotNull PlayerShowEvent event) { HibiscusPlayerUnVanishEvent newEvent = new HibiscusPlayerUnVanishEvent(this, event.getPlayer()); Bukkit.getPluginManager().callEvent(newEvent);