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.
- 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:
# Would you like it to detect links like: https://youtube.com
detect_links: true
# Would you like this to download the words from a github?
download_from_github: true
# Would you like it to filter chat messages?
filter_chat_message: true
# Would you like it to listen to anvil renames?
filter_anvil_names: true
# Would you like chat messages to either:
# cancel or filter.
filter_chat_type: "filter"
# Would you like anvil renames to either:
# cancel or filter.
filter_anvil_type: "filter"
# Would you like it to send staff a detection when someone sends a message
# with blacklisted words to see what they have said?
send_detection_to_staff: true
# What would you like the detection message to be?
# prefix option = <prefix>
# maincolor option = <main color> or <maincolor>
# player detected = <player> or <detected player>
# full message = <full msg> or <full message>
# words detected = <words detected> or <words filtered>
# typed in = <typed in>
detection_message: "%nl%<maincolor>&lCHATFILTER DETECTION%nl%%nl%&8 <maincolor><player> &fhas included their message%nl%&8
&fwith some blacklisted/banned word(s).%nl%%nl%&8
&fFull message: <maincolor><full message>%nl%&8
&fWords its detected: <maincolor><words detected>%nl%&8
&fTyped in: <maincolor><typed in>%nl%"
# Optional options to change:
command_permission: chatfilter.command.use
detection_permission: chatfilter.staff.listen
prefix: &e&lCHATFILTER&r
maincolor: &e
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.
TERMS OF CONDITIONS YOU ACCEPT WHEN YOU INSTALL THIS SKRIPT:
- Do not redistribute this skript
- Do not claim the skript is yours
Extra 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:
chatfilter_containsProfanity
(<message>) (returns boolean true/false) - To replace the input's message to astricts, You can use:
chatfilter_filterMessage
(<message>) (returns string) - To find all the words in the message it contains, use
chatfilter_findProfanityWords(<message>), (USE THIS BEFORE YOU USE THE FUNCTION 'chatfilter_filterMessage(<message>)')
If you have any issues or suggestions you would like added into this skript, Please leave them in the review section.
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta