1. 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!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Chat Filter Request

Discussion in 'Requests' started by wattywatty14, Nov 13, 2019.

  1. wattywatty14

    wattywatty14 Member

    Jun 17, 2017
    Likes Received:
    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
  2. AsuDev


    Jan 27, 2017
    Likes Received:
    Code (Skript):
    1. on script load:
    2.     set {badwords::*} to "love" and "badword" and "blockme"
    4. on chat:
    5.     loop {badwords::*}:
    6.         if message contains loop-value:
    7.             cancel event
    8.             message "&cYou cannot say that."
    Like this simple?

Share This Page