
BetterAntiSwear
Better Anti Swear is a Spigot and Paper plugin that detects and handles inappropriate language in your server's chat.
Список изменений
Bug Fix
The Issue
Certain words containing the letters "ck" were silently bypassing detection entirely, regardless of how the chat filter settings were configured. The word "fuck" was the most commonly affected example, along with "cock".
Root Cause
The leet-speak normalization step in the detection engine included the following substitution, intended to catch a specific bypass pattern:
.replace("ck", "k"); // avoids "c k" bypass
Every incoming chat message had all occurrences of "ck" replaced with "k" before being checked against the bad word list. This meant "fuck" was being converted to "fuk" prior to matching. Since the bad word list stores the literal word "fuck" (with the "ck" intact), the comparison "fuk".contains("fuck") always returned false, allowing the message through unfiltered.
The same substitution affected any other bad word containing "ck", including "cock".
Fix
The .replace("ck", "k") substitution has been removed from the normalization pipeline. It provided no meaningful protection against bypass attempts and was actively breaking detection for any word containing "ck".
Impact
This was a detection-breaking bug present since the initial release. Servers running earlier versions should update as soon as possible, since one of the most common words in the default word list was completely unfiltered.
No configuration changes are required. The fix is contained entirely within the plugin's internal detection logic.
