mirror of
https://github.com/HibiscusMC/HibiscusCommons.git
synced 2026-01-06 15:51:55 +00:00
clean: ignore cancelled events for SuperVanish
This commit is contained in:
@@ -20,13 +20,13 @@ public class HookSuperVanish extends Hook {
|
|||||||
super("SuperVanish");
|
super("SuperVanish");
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler(priority = EventPriority.NORMAL)
|
@EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = true)
|
||||||
public void onPlayerVanish(@NotNull PlayerHideEvent event) {
|
public void onPlayerVanish(@NotNull PlayerHideEvent event) {
|
||||||
HibiscusPlayerVanishEvent newEvent = new HibiscusPlayerVanishEvent(this, event.getPlayer());
|
HibiscusPlayerVanishEvent newEvent = new HibiscusPlayerVanishEvent(this, event.getPlayer());
|
||||||
Bukkit.getPluginManager().callEvent(newEvent);
|
Bukkit.getPluginManager().callEvent(newEvent);
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler(priority = EventPriority.NORMAL)
|
@EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = true)
|
||||||
public void onPlayerShow(@NotNull PlayerShowEvent event) {
|
public void onPlayerShow(@NotNull PlayerShowEvent event) {
|
||||||
HibiscusPlayerUnVanishEvent newEvent = new HibiscusPlayerUnVanishEvent(this, event.getPlayer());
|
HibiscusPlayerUnVanishEvent newEvent = new HibiscusPlayerUnVanishEvent(this, event.getPlayer());
|
||||||
Bukkit.getPluginManager().callEvent(newEvent);
|
Bukkit.getPluginManager().callEvent(newEvent);
|
||||||
|
|||||||
Reference in New Issue
Block a user