Jump to content

Untested [6.2] Profanity Filter


Cheshire

Recommended Posts

 [6.2] Profanity Filter

 

Description:

This patch adds a basic profanity filter that is configurable through the server in a file called filteredwords.json.

This filter is applied to the following things:

 

  • Chat
  • Usernames
  • Character names

 

It's nothing fancy, and supports basic features such as wildcards on words.

Word of warning, adding an insanely long list WILL slow down your server, as it checks against each entry on the list.

 

The updated version of this mod can automatically mute players for sending multiple filtered chat messages.

This can be configured through the server configuration file, under Chat Options.

There is language file support for the mute reason.

 

Credits:

This was based on the work of James Montemagno.

Found his class while searching for an answer to a question asked on the forum, and started writing a class based on his work.

Ended up using two of his methods, why reinvent the wheel.

 

Media:

 

Spoiler

Word List

159165c930dc14120b654afe39081f77.png

 

Word list in action

db9b5057ea2d486c559e266c9247c14b.gif

 

c2ae1e2a4dc18e139e81e083c73a46b1.png

 

ec27730a35f2a59dc766bc80ee57ffb2.png

 

Downloads:

[Download]

 

Updates:

  • [Download] - Adds the profanity check to user and character names and modifies a method that checks if any filtered words are in a given string.
  • [Download] - Add the ability to mute people automatically after sending a certain amount of filtered chat message.
  • [Download] - Fixes two small dumbs of me in the last update.

 

Built and tested for 0.6.2.420

 

Setup:

 

The following steps are REQUIRED before this will work properly!

  1. Download and install the main patch file
  2. Download and install any update patches IN THE ORDER THEY ARE LISTED.
  3. Compile and run the server, it should automatically generate the required configuration file!
  4. Close down your server, add the words you want to the filter and start your server again.
  5. Chat like no one has ever chat before!
Link to comment
Share on other sites

new to .net, and everything in the section including this importing. 

 

I read, and can do everything.

 

But how do I download the pack into a .git? @Joyce

 

Edited: Oh I have to download Github Desktop, Didn't know that was a thing lol. but I download it.

Link to comment
Share on other sites

@joyce

True, and I see more on this git situation for adding codes/packs to help me in the future.

 

But for now if anyone uses words that aren't PG13 I warn them with a Mute, and if it keeps happening I just ban them.

Link to comment
Share on other sites

4 hours ago, The Bunny Gamer said:

I wonder if it would be possible to make a whitelist with this? :35_thinking:

 

Maybe? I'm not sure that's as universally useful as a blacklist though.

So if anyone wishes to do that, that's on them. :)

 

Update

[Download] - Adds the profanity check to user and character names and modifies a method that checks if any filtered words are in a given string.

Link to comment
Share on other sites

  • 2 months later...

Small little update, added the ability for the filter to automatically mute people when they use filtered words repeatedly.

The settings for this can be configured through the server config file.

Note that the profanity count on a player resets when they log out and back in.  The mute however, does not.

 

c2ae1e2a4dc18e139e81e083c73a46b1.png

 

ec27730a35f2a59dc766bc80ee57ffb2.png

 

Downloads (two because I did a dumb)

 

Update part 1.

Update part 2.

Link to comment
Share on other sites

  • 11 months later...

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...