From c81e565534ccf09a01ebd0d6575b2bffa26d63fe Mon Sep 17 00:00:00 2001 From: J10a1n15 <45315647+j10a1n15@users.noreply.github.com> Date: Tue, 6 Aug 2024 19:31:34 +0200 Subject: [PATCH] fix Signed-off-by: J10a1n15 <45315647+j10a1n15@users.noreply.github.com> --- .../partlysaneskies/features/skills/BestiaryLevelUpWebhook.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/kotlin/me/partlysanestudios/partlysaneskies/features/skills/BestiaryLevelUpWebhook.kt b/src/main/kotlin/me/partlysanestudios/partlysaneskies/features/skills/BestiaryLevelUpWebhook.kt index 144b850c..e3e7562b 100644 --- a/src/main/kotlin/me/partlysanestudios/partlysaneskies/features/skills/BestiaryLevelUpWebhook.kt +++ b/src/main/kotlin/me/partlysanestudios/partlysaneskies/features/skills/BestiaryLevelUpWebhook.kt @@ -50,6 +50,7 @@ object BestiaryLevelUpWebhook : Webhook() { @SubscribePSSEvent fun onChatMessage(event: PSSChatEvent) { + if (!enabled) return val message = event.message val (_, mob, oldLevel, newLevel) = regex.find(message)?.destructured ?: return