diff --git a/src/main/java/ir/syrent/enhancedvelocity/api/VanishHook.kt b/src/main/java/ir/syrent/enhancedvelocity/api/VanishHook.kt index 93e6796..9029e37 100644 --- a/src/main/java/ir/syrent/enhancedvelocity/api/VanishHook.kt +++ b/src/main/java/ir/syrent/enhancedvelocity/api/VanishHook.kt @@ -13,9 +13,17 @@ interface VanishHook { fun setUnVanished(uniqueId: UUID) + fun register() { + HANDLERS.add(this) + } + + fun unregister() { + HANDLERS.remove(this) + } + companion object { @JvmStatic - val HANDLERS = listOf() + val HANDLERS = mutableListOf() @JvmStatic fun isVanished(uniqueId: UUID): Boolean {