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