Skript auto-mute icon

Skript auto-mute -----

Automated chat moderation



Code (Text):
on chat:
    if message contains "nigger", "nigga", "coon", "Nigger", "Nigga", "Coon", "NIGGER", "NIGGA", "COON", "fag", "Fag", "FAG", "kys", "Kys" or "KYS":
        if {filterwarn.%player%} is 0:
            cancel event
            send "&cPlease be respectful! You've been warned verbally!"
            send "Verbal warning %{filterwarn.%player%}%/3"
            set {filterwarn.%player%} to 1
        if {filterwarn.%player%} is 2:
            cancel event
            send "&cPlease be respectful! Final warning!"
            send "&clanguages!"
            send "&4Final Warning before mute %{filterwarn.%player%}%/3"
            set {filterwarn.%player%} to 2
            execute console command "/warn %player% [Automated Punishment] Inappropriate Use of Chat -s"
        if {filterwarn.%player%} is 3:
            cancel event
            set {filterwarn.%player%} to 0
            execute console command "/tempmute %player% 1h [Automated Punishment] Inappropriate Use of Chat -s"

on join:
    set {filterwarn.%player%} to 0
I've made a stupid error in the code and Im fixing it soon

If you take a look at the code, it's pretty self-explanatory.

Warns, and mute players who send the message that contains explicit language depending on violations.

First violation: Verbal warn
Second violation: /warn
Third violation: Mute
Resource Information
Author:
----------
Total Downloads: 128
First Release: Feb 15, 2021
Last Update: Feb 15, 2021
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings