Jump to content

How to block Fancychat with the ChatControl plugin [Guide]


cmdBlox

Recommended Posts

What is Fancychat?

Fancychat is a mod that most hacked clients have that allow players to use characters that look like this:

Example Text or Ⓔⓧⓐⓜⓟⓛⓔ ⓣⓔⓧⓣ

 

Why would you want to block this on your server?

These characters are not blocked by default by ChatControl, and because of this, players can use these characters to bypass the chat filter, which means they can say inappropriate things they normally wouldn't be able to say.

 

How to block these characters with the ChatControl plugin?

  1. Go into your File Manager, then into your "Plugins" folder, then into the "ChatControl" folder, then into the "rules" folder, then open the "rules.txt" file.
  2. Scroll to the past the big block of text at the start of the file and paste one of the following into the file:

If you want to only allow "normal" characters, paste this (note: this blocks some characters used for languages that don't use the latin alphabet) :


#Only allows "normal" characters
match [^\u0000-\u007F]+
then warn &4Please use normal text.&r
then deny

If you want to just block these two types of Fancychat characters (Example Text and Ⓔⓧⓐⓜⓟⓛⓔ ⓣⓔⓧⓣ) (the two most common sets of characters used), paste this:


#Blocks PARENTHESIZED LATIN SMALL LETTER and
#CIRCLED LATIN CAPITAL LETTER Alphabet
match [\u249C-\u24E0]+
then warn &4Please use normal text.&r
then deny

#Blocks FULLWIDTH LATIN SMALL LETTER Alphabet
match [\uFF10-\uFF60]+
then warn &4Please use normal text.&r
then deny

If you want to be able to see when players try to use Fancychat characters (and are denied) add this below the line(s) that contain "match [\blah-\blah]+":

then notify chatcontrol.notify.rulesalert &8[&7ID FancyChat&8] &7{player}: &f{message}

 

You should now have something like the attached image.

 

     3. Press "SAVE" then run "/chc reload" in game for changes to take affect.

 

Note: Players that are opped, or have chatcontrol bypass permissions (which default players have set to false by default) can still use fancychat characters.

 

 

example.jpg

Edited by Player1428290
  • Like 2
Link to comment
Share on other sites

Nice guide. Very helpful

Graphic Designer - Skript Developer - Professional Builder - Content Creator

Been on Minehut since January 2018. Throughout my time here I've mastered the skills you see above. I make free logos, banners, and server art for users on Minehut. I'm a proficient Skript developer. I'm also really good at building, you can see my portfolio by clicking here. Feel free to say hi if you see me somewhere 🙂

Amethyst Studios Discord

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...