the isclean method now requires Pattern value instead of using only utils#getSwears(), now it is possible to only filter global messages
There is now a local cache of sizes for swears, whitelist, and global information. I now compare this to the raw file and if it differs, update
Added possibility of only punishing players if they have flagged global filters
Removed Sign Filtering Support
Removed ability to disable whitelist checking, if you wish to have it disabled just set the whitelist list to be empty
Player Only Filtering now relies upon recipients and is set to only be called last, to let all other plugins have first go
Removed Custom Regex options in config, you may now add custom regex as you would a normal swear:
To do this, you need to add a prefix like so: /mcsf add regex:REGEX or /mcsf global regex:REGEX
This now means custom regex is now cross-server compatible
PlaceholderAPI support! You can now use placeholders from PAPI in MCSF messages!
Some placeholders have been added for other plugins to use, check the last bit in the README.md!
Removed users option from config and it is now set into an SQLLite database.
User data is now stored and managed in a new User class.
This version has a huge revamp of the filtering methods, causing no delay from messages on my test server.
This version now has the SQL data in a separate folder, so you can share the config.yml without sharing the credentials of MySQL aswell.
This version adds the possibility of double filtering a string, if enabled strings will be filtered twice before returning to users.
This prevents users from bypassing the filter by putting a swear inside of a swear E.G: sh shit it would return to user as sh **** it
if this is enabled, it would be filtered and shown as sh **** it
Fixes:
Fixed issue with globalSwears generating lag whenever filtering occurs (was creating new regex each time a word was cleaned)
Fixed issue with book checks not globally filtering
Made it so that custom regex could be globally filtered, though this will disallow the use of TYPE parameters
Fixed issue with swears.yml appearing to be empty due to a variable being filled and checked before it finished
Fixed issue with special characters and spaces not successfully being filtered in some cases
Notes Enabling only player filtering strips all hovering and special effects added to that message. The only way to keep these is to use ProtocolLib and have Player only filtering disabled.
For more information please see this page