Skip to content

Commit

Permalink
fix: forgot to add register/unregister method for vanish hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Syrent committed Jun 1, 2024
1 parent 661fc69 commit 2fbbca9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/main/java/ir/syrent/enhancedvelocity/api/VanishHook.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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<VanishHook>()
val HANDLERS = mutableListOf<VanishHook>()

@JvmStatic
fun isVanished(uniqueId: UUID): Boolean {
Expand Down

0 comments on commit 2fbbca9

Please sign in to comment.