From 96f5e0c6784006e705bc7bd605f68ff243b964a1 Mon Sep 17 00:00:00 2001 From: SantioMC Date: Fri, 13 Dec 2024 19:25:38 -0500 Subject: [PATCH] fix: unlimited cooldown --- .../kotlin/me/santio/minehututils/tags/TagListener.kt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/me/santio/minehututils/tags/TagListener.kt b/src/main/kotlin/me/santio/minehututils/tags/TagListener.kt index c06ce6c..b17b66d 100644 --- a/src/main/kotlin/me/santio/minehututils/tags/TagListener.kt +++ b/src/main/kotlin/me/santio/minehututils/tags/TagListener.kt @@ -31,7 +31,13 @@ object TagListener: ListenerAdapter() { } recentlySent.add(id) - tag.send(event.message) + + try { + tag.send(event.message) + } catch (e: Exception) { + e.printStackTrace() + return + } coroutineScope.launch(exceptionHandler) { TagManager.addUse(tag)