Another Update, More Fixes, More Features.
BUG FIXES:
- Fixed where the first letter of the word would not allow leet detection to be detected.
- Fixed where there were long reload times in the skript.
NEW FEATURES:
- Added where it will download words from a github link (
https://raw.githubusercontent.com/coffee-and-fun/google-profanity-words/main/data/en.txt), This link should not be changed if you are tampering with the skript. (this can be disabled in the skript)
- Added a new function called chatfilter_normalizeWord(<word>) -> This would replace the word like
7est and ᴛᴛᴛest -> test and tttest
- Added where you can listen to the event 'on chatfilter detect:', it allows the parameters 'player' and 'event-string',
player = the player who has been detected
event-string = the full message that has been said.
- Added a way to whitelist words, since there were some fake detections, theres now a way to whitelist the words.
- Added a command to completely wipe the filter.
Same as normal, any bugs let me know in the review comments and any suggestions let me know!