Major update 5.0
Be wary as this update is experimental-ish, if you encounter any issues please post an issue :)
Changes
- Made it so that all chat messages sent to discord are filtered and allowed WebhookChatMessage messages to be filtered
- Re-implemented the reload command
- Made it so that MCSF doesn't bypass event cancellations from other plugins when using only player filtering
- Added a global swear filter feature that lets you filter words despite the filter being on or off
- Also added a new feature tied in with this, save messaging that contains swears
- We now use HikariCP instead of MySQLAPI
- A new command was added, syntax: /MCSF parse (enabled_state) (string)
- This will parse all of the arguments after the enabled as a single message and will clean it as the player would see it
-
If you have the swear filter enabled and have the enabled_state as false (and have global filtering on) the message will be filtered no matter what
- Since this command is more debug based and very experimental, it will not be on the command list for some time
Fixes
- Modified some code to help with lag and code readability
- Fixed issue with whitelist removing removes from the swear list instead
- Fixed issue with the quote character not being escaped correctly causing issues with the ignoring special characters feature.
- Fixed issue with special characters not being filtered correctly in Signs
- Fixed issue with swear filter accidentally flagging whitelist UUID counter-parts as a blacklisted string.
- Fixed issue with only player filtering not being enabled if ProtocolLib chat filtering fails.
- Fixed issue with help command sending new line at the end of the help message
- Fixed issue with ProtocolLib global filtering's JSON messages being flagged as a blacklisted string.
- To counteract this issue, the following words have been disallowed to be blacklisted words: extra, text, italic, color, and every ChatColor enum value there is and those words have been forcefully added to the whitelist (if enabled)