This plugin helps keep your server's chat and signs clean by automatically filtering out inappropriate language. It works in two main ways:
- Sign Filtering:
When a player changes a sign, the plugin scans every line for any banned words that are specified in the configuration file. If a banned word is found (regardless of case), it is removed from the sign using a case‐insensitive regular expression replacement. After cleaning the sign, the plugin sends a warning message to the player, informing them that inappropriate language has been removed.
- Chat Message Processing:
For normal chat messages (excluding commands), the plugin checks if the first letter is lowercase and, if so, capitalizes it. This helps maintain a consistent, clean appearance in chat.
Overall, the plugin intercepts both sign changes and chat messages to ensure that profanity and other banned words are filtered out automatically. It uses a list of banned words (from the config) to determine which words to remove and provides immediate feedback to the player when their sign content is modified.