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

wattywatty14

Member
Jun 17, 2017
3
0
0
Category: Chat/Utility

Suggested name: ChatFilter

Spigot/Skript Version: Skript 2.3.7 - Spigot 1.12.2-R0.1-SNAPSHOT

What I want:
A simple chat filter that blocks players' messages when the skript detects a bad word. Let's say "love" is a bad word for example- if I say "love," then it won't even send the chat message. It'll say, "You cannot say that!"

Ideas for commands: N/A

Ideas for permissions: N/A

When I'd like it by: 2 Weeks from 11/13/19
 
code_language.skript:
on script load:
    set {badwords::*} to "love" and "badword" and "blockme"

on chat:
    loop {badwords::*}:
        if message contains loop-value:
            cancel event
            message "&cYou cannot say that."

Like this simple?