Looking for a small ChatControl config

Status
This thread has been locked.

Cold

feeling low
Premium
Feedback score
56
Posts
1,517
Reactions
408
Resources
0
I'm looking for someone experienced in chat control to add a list of whitelisted words for me and their replacements or atleast teach me how to do it myself. For example someone on the server would say "fuck you" and the message will be replace to "I love you". If you can do this for me, I'll leave you a detailed vouch on your profile!
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Christopher

Floating around
Supreme
Feedback score
8
Posts
2,048
Reactions
1,120
Resources
0
I'm looking for someone experienced in chat control to add a list of whitelisted words for me and their replacements or atleast teach me how to do it myself. For example someone on the server would say "fuck you" and the message will be replace to "I love you". If you can do this for me, I'll leave you a detailed vouch on your profile!
Can you leave a link to the plugin so I can see it?
 

Jayson

Supreme
Feedback score
17
Posts
1,258
Reactions
741
Resources
0
Code:
match Fuck
then replace love
That's basic
Then you have
PHP:
match \b(f+(\W|\d|_)*u+(\W|\d|_)*c+(\W|\d|_)*k+(\W|\d|_)*)
handle as swear
which handles "fuck" as a swear which punishment is defined in the config. Then you have:
PHP:
\b(f+(\W|\d|_)*u+(\W|\d|_)*c+(\W|\d|_)*k+(\W|\d|_)* +(\W|\d|_)*Y+(\W|\d|_)*o+(\W|\d|_)*u+(\W|\d|_)*)
handle as swear
Which theoretically detects "fuck you"
or replace "handle as swear" with:
PHP:
then replace love you
 

Cold

feeling low
Premium
Feedback score
56
Posts
1,517
Reactions
408
Resources
0
Can you leave a link to the plugin so I can see it?
https://www.spigotmc.org/resources/chatcontrol.271/[DOUBLEPOST=1476440366][/DOUBLEPOST]
Code:
match Fuck
then replace love
That's basic
Then you have
PHP:
match \b(f+(\W|\d|_)*u+(\W|\d|_)*c+(\W|\d|_)*k+(\W|\d|_)*)
handle as swear
which handles "fuck" as a swear which punishment is defined in the config. Then you have:
PHP:
\b(f+(\W|\d|_)*u+(\W|\d|_)*c+(\W|\d|_)*k+(\W|\d|_)* +(\W|\d|_)*Y+(\W|\d|_)*o+(\W|\d|_)*u+(\W|\d|_)*)
handle as swear
Which theoretically detects "fuck you"
or replace "handle as swear" with:
PHP:
then replace love you
I'm really not good with config, if you can guide me via Skype on sharescreens, I'll leave you a detailed vouch!
 
Last edited:

butterontoast7

Supreme
Feedback score
4
Posts
42
Reactions
18
Resources
0
Already contacted on skype and have the config ready to show him.
 
Status
This thread has been locked.
Top