Skip to content
home/templates/anti-swear chat filter
moderationBeginnermc 1.20.x – 1.21.x6 lines

anti-swear chat filter

blocks chat messages containing banned words. replaces matches with asterisks instead of cancelling the message.

vanilla Skriptno addons required.
anti-swear.sk6 lines
on chat:
    loop "darn", "heck", "frick":
        if message contains loop-value:
            replace all loop-value with "***" in message
            send "&7Your message was filtered." to player

get it running

anti-swear.sk · 6 lines · vanilla Skript
  1. 1

    copy or download

    grab the .sk file with the buttons up top.

    anti-swear.sk· ready to drop in
  2. 2

    drop it in your scripts folder

    save it exactly here on your server — no typos, just copy the path:

    …/plugins/Skript/scripts/anti-swear.sk
  3. 3

    reload in-game

    run this in chat or console — your script goes live instantly:

    /sk reload anti-swear
that's it — your script is live. hop in-game to try it.
/ related templates

more moderation templates

comments