Solved Chat Censor

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

ESW_ST33le

Member
May 6, 2020
32
1
6
23
I am currently making a chat manager in Skript, and my chat censor is not working. The error code i am getting is "[01:00:35 ERROR]: 'message contaians "fuck"' is not a boolean (yes/no) (anticheat.sk, line 154: if message contaians "fuck":')". The code i am using is
on chat:
if message contaians "fuck":
cancel event
send "&cPlease do not swear!"

Does anyone know what to do? I have Skellet, skDragon, skQuery, and TuSKe installed.
 
I am currently making a chat manager in Skript, and my chat censor is not working. The error code i am getting is "[01:00:35 ERROR]: 'message contaians "fuck"' is not a boolean (yes/no) (anticheat.sk, line 154: if message contaians "fuck":')". The code i am using is
on chat:
if message contaians "fuck":
cancel event
send "&cPlease do not swear!"

Does anyone know what to do? I have Skellet, skDragon, skQuery, and TuSKe installed.
This should work:
code_language.skript:
on chat:
    if message contains "fuck":
        replace all "fuck" with "****" in message
        send "&cPlease do not swear!" to player
 
Last edited:
code_language.skript:
on chat:
    if message contains "fuck":
        replace all "fuck" with "****" in message
        send "&cPlease do not swear!" to player

that could be easily be bypassed by doing "xfuck" instead of "fuck"
 
code_language.skript:
on chat:
    if message contains "fuck":
        replace all "fuck" with "****" in message
        send "&cPlease do not swear!" to player

that could be easily be bypassed by doing "xfuck" instead of "fuck"
then you write all of the possible replacements of fuck
 
Status
Not open for further replies.