Advance Regex Chat Filter
Created by: duff_mans_jnr
Bring Advance Detection on to
your server to block words you
dont want allowed.
✅ Features this skript brings:
- Advance Regex Detection
- Commands to add, list and remove your chat filter's list.
- YAML file storage that stores your filtered words which you can add onto or remove.
- Options you can disable and enable on your chat filter that are customizable.
- Can be implemented and used inside your own skripts as well.
⚙️
Options you can configurate with on your server:
options:
chatfilter-filter-urls: true #Would you like this chat filter to filter URLS?
chatfilter-command-permission: permission.chatfiltercommand.use # The Chatfilter command permission
badword-file: "plugins/ChatFilter/badwords.yml" # Where would you like the store the badwords?
badword-preload: true # Before the skript is /sk reloaded, Would you like it to preload some filtered words into the chat filter (inside the .yml) file
prefix: &e&lCHATFILTER # Define the prefix you would want it to send.
arrow: &7->
maincolor: &e #Define the main color you would want.
(Line 1-10 inside the skript where these options are located.)
Requirements you need to use this skript:
- Skript - 2.11.2 (tested version)
- Skbee - 3.11.2 (tested version)
- Skript-reflect - 2.6 (tested version)
Installation:
- Install the requirements onto your server
- Restart your server (so the requirement plugins activate)
- After the server has restarted, place the '.sk' file in '/plugins/Skript/scripts'
- Use '/sk reload <name of file you pasted in>.sk'
- Now the chat filter is activated and ready to be used.
Information:
- If you would like to implement the functions into your skript, You can! Heres a example on how to implement it:
- To detect if the input's message is flagged, You can use:
containsProfanity(<message>) (returns boolean true/false)
- To replace the input's message to astricts, You can use:
filterProfanity(<message>) (returns string)
If you have any issues or suggestions you would like added into this skript, Please leave them in the review section.