diff options
Diffstat (limited to 'src/main/kotlin/dulkirmod/features/chat')
-rw-r--r-- | src/main/kotlin/dulkirmod/features/chat/AbiphoneDND.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/kotlin/dulkirmod/features/chat/AbiphoneDND.kt b/src/main/kotlin/dulkirmod/features/chat/AbiphoneDND.kt index d2e0a69..f0a5cb0 100644 --- a/src/main/kotlin/dulkirmod/features/chat/AbiphoneDND.kt +++ b/src/main/kotlin/dulkirmod/features/chat/AbiphoneDND.kt @@ -18,6 +18,7 @@ class AbiphoneDND { if (!Config.abiDND) return if (System.currentTimeMillis() - lastRing < 5000) { if (event.name == "note.pling" && event.sound.volume == 0.69f && event.sound.pitch == 1.6666666f) { + // This throws an error but still blocks the sound. Not a great solution, but it works for now event.isCanceled = true } } @@ -47,6 +48,5 @@ class AbiphoneDND { event.isCanceled = true; } } - } }
\ No newline at end of file |