Jump to content

Chat Filter Skript - Efficient and easy to use!


Recommended Posts

hey look its another script that i made
 

so this script is a chat filter, you can add it to your server with no addons needed and it will work!
script is fully customisable and can work without causing lag

options:
  
  #CONFIG
  prefix: &a✔
  no-prefix: &8✖
  permission: staff
  

on chat:
    loop {filterswear::*}:
        if message contains loop-value:
            cancel event
            send "{@no-prefix} &cYou cannot send that here"
            send "&7[FILTER] &8%player% &7%message%" to all players where [input has permission "{@permission}"]

command /filter [<text>] [<text>]:
    permission: op
    trigger:
        if arg-1 is "add":
            if arg-2 is set:
                if {filterswear::*} does not contain arg-2:
                    add arg-2 to {filterswear::*}
                    send "{@prefix} &7Added %arg-2% &7to the swear filter."
                    stop
                else:
                    send "{@no-prefix} &cThat word is already blocked!"
                    stop
            else:
                send "{@no-prefix} &cSupply a word to filter!"
                stop
        if arg-1 is "remove":
            if arg-2 is set:
                if {filterswear::*} contains arg-2:
                    remove arg-2 from {filterswear::*}
                    send "{@prefix} &7Removed %arg-2% &7from the swear filter."
                    stop
                else:
                    send "{@no-prefix} &cThat word is not blocked!"
                    stop
            else:
                send "{@no-prefix} &cSupply a word to unfilter!"
                stop
        if arg-1 is "list":
            send "&cThe filtered words are: &7%{filterswear::*}%"
            stop
        else:
            send "{@no-prefix} &cUnknown argument"
            stop

Enjoy!

  • Like 3

Twitch Affiliate, YouTuber and Minehut Content Creator

(100,000+ Combined Views, 1,100+ Combined Followers & Subs, 20,000+ Combined Unique Players)

IGN:
[YOUTUBE] Centrect

 Please don't DM me for support, go here or join Minehut's Discord if you need assistance.

 

Link to comment
Share on other sites

Nice skript!

Invislol 

• 4-5 years of skript experience
• 6 Months of active java experience
• 2 Years of javascript and python experience


unknown.png
[PATRON] RANK

Helpful Stuff:
Appeals and Reports  - Here | Minehut  Global And forums rules - Here

Link to comment
Share on other sites

Thanks!

Twitch Affiliate, YouTuber and Minehut Content Creator

(100,000+ Combined Views, 1,100+ Combined Followers & Subs, 20,000+ Combined Unique Players)

IGN:
[YOUTUBE] Centrect

 Please don't DM me for support, go here or join Minehut's Discord if you need assistance.

 

Link to comment
Share on other sites

Nice skript but you can remove all those stop since you are using else and they aren't needed. 

Discord - tarna256

In-game name - _Tarna_

Website - https://tarna.dev
Paste Site: https://paste.tarna.dev

---------------------------------------------------------

[VIP] - 7/27/2020

Community Support - 7/8/20 | 11/3/20

Helper  - 11/3/20 - 2/21/21

Moderator - 2/21/21 - 5/17/21

❤️ - 5/17/21 - now

Moderator - 12/20/22 - now

---------------------------------------------------------

image.png.70849a9b84e0347ce107b8e3eaee312c.pngimage.png.2111009afbd8bef10966ba9ede35a199.png

Link to comment
Share on other sites

Works really well! I suggest to add a simple help command addition and/or a option to change the filter message. But those are just some things that I can do myself. 

2021-06-09_20_22_08.jpg.422c39613f8b72de894e5ec1f3377dca.jpg

Yo who actually reads these

[Vip] - 12/29/2020
[Pro] - 1/25/2022
 

 

 

Link to comment
Share on other sites

  • 2 months later...
8 hours ago, xxs_xxs said:

How do i apply this to my server

 

Please don't comment on posts older than one month. That is called necroposting and is against the forums rules. Could a mod lock this?

Developer

 

Joined Minecraft in 2010 on PC

Joined Minehut in August 2016

1 year Skript experience

2 months Java experience

5 months Javascript experience

 

Link to comment
Share on other sites

22 hours ago, xxs_xxs said:

How do i apply this to my server

 

Please don't reply to posts that haven't been responded to in over a month. I would be locking this thread now, you can start a new thread in case you need some help. Thanks!

13 hours ago, emopediaMC said:

Please don't comment on posts older than one month. That is called necroposting and is against the forums rules. Could a mod lock this?

No need to reply to this post to tell them not to necropost, you may just report it to us so we can see it immediately! Thank you. 😄 

a.JPG

 

 200.gif.19df7170946e7fd798cba372080b8d15.gif

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...