antiswear not working

  • 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 community!

    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.

AKRODOGY

Active Member
Mar 20, 2018
52
2
8
I want to make a anti swear
The skript is down

code_language.skript:
on chat:
    if {rank.%player%} is "PLAYER":
        if message contains "fuc":
            cancel the event
            broadcast "&7%player%&f: ****"
            message "&7Do not swear!"

But i have a problem
In chat say
AkroDogy: fuc
AkroDogy: ****
Do not swear!

The porblem is
code_language.skript:
AkroDogy: fuc
Help me
 
It not working, same problem+
it says 'the chat message is already a text, so you should not put it in one (e.g. the chat message instead of "%the chat message%") (antiswear.sk, line 3: if "%message%" contains "fuc":')'
 
code_language.skript:
on chat:
   set {_message} to message
   if "%{_message}%" contains "fuc":
       cancel event
Maybe that??
 
The problem is not in your code, but in another. If you have some sort of custom chat script, can you send that? The custom chat script should stop if the event is being cancelled but it isn't.
 
Status
Not open for further replies.