AntiBadWords

Approved AntiBadWords 1.1

No permission to download

salva

Friendly self-taught developer
Administrator
Jan 31, 2016
576
164
43
salva submitted a new resource:

AntiBadWords - Analyze player messages in search of forbidden words.

AntiBadWords Analyze player messages in search of forbidden words.

Do not allow your players to use obscene and annoying words for other users at times when the Administrator is not connected, thus your server will be clean of unwanted messages.

List of Administration commands:
Use /bw to see the HELP.
Use /bwr to reload the word list.
Use /bwl to see the list of forbidden...
Read more about this resource...
 

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
3,956
1,129
113
At your house.
github.com
salva submitted a new resource:

AntiBadWords - Analyze player messages in search of forbidden words.



Read more about this resource...
https://github.com/salvadj1/AntiBadWords/blob/master/AntiBadWords.cs#L44

A suggestion here.
string Text = chatString.OriginalMessage;

instead

string Text = chatString.OriginalMessage.ToLower();

This will detect anything in the chat without case sensitivity.
Also here:
https://github.com/salvadj1/AntiBadWords/blob/master/AntiBadWords.cs#L47

Add a break; so the for cycle stops and doesnt run multiple times if it found 1 match already.

You could also tolower() here:
https://github.com/salvadj1/AntiBadWords/blob/master/AntiBadWords.cs#L147
 
  • Useful
Reactions: salva

Pompeyo

Plugin Developer
Plugin Developer
Jan 6, 2018
69
12
8
37
Cuba
Hi !!
It would be nice to add a command to remove a word from the list
 

Revezunds

Moderator
Moderator
Dec 1, 2017
96
38
18
Please add a possibility to change the blacklisted word into another
Example: a player abuse and the word blacklisted changed to an already selected word by admin.
upload_2019-3-10_17-59-18.png
 
  • Useful
Reactions: Maggie