Jump to content

SkChat chat filter release!


Disvand

Recommended Posts

I'm bored and waiting for Christmas to arrive! I skripted something in my spare time that is fully customisable and is basically like a plugin! The skript is really simple and is only 41 lines long.

/skchat add|remove|list|help [word]

/skchat add word

/skchat remove word

/skchat list (shows every listed word you added to the filter)

/skchat help (shows the help message)

If there is anything that you would like to let me know, DM me on discord or reply to the message! Discord is Disvand#0001

Good luck on your server and have fun making it!

on chat:
    loop {skchat::*}:
        if message contains loop-value:
            cancel event
            send "&b&lSk&f&lChat &b&l| &fYou cannot say that word!"
            send "&b&lSk&f&lChat &b&l| &b%player% &fHas just said a word that is in the chat filter. &7%player%: %message%" to all players where [input has permission "skchat"]

command /skchat [<text>] [<text>] [<text>]:
  trigger:
    if arg-1 is "add":
      if arg-2 is set:
        if {skchat::*} does not contain arg-2:
          add arg-2 to {skchat::*}
          send "&b&lSk&f&lChat &b&l|&f Added &b%arg-2% &fto the chat filter."
        else:
          send "&b&lSk&f&lChat &b&l|&f That word is already added to the chat filter!"
      else:
        send "&b&lSk&f&lChat &b&l|&f Usage: /skchat add&b/&fremove&b/&flist&b/&fhelp &b[&fword&b]"
    if arg-1 is "remove":
      if arg-2 is set:
        if {skchat::*} contains arg-2:
          remove arg-2 from {skchat::*}
          send "&b&lSk&f&lChat &b&l| &fRemoved &b%arg-2% &ffrom the chat filter."
        else:
          send "&b&lSk&f&lChat &b&l| &fThat word is not in the chat filter!"
      else:
        send "&b&lSk&f&lChat &b&l|&f Usage: /skchat add&b/&fremove&b/&flist&b/&fhelp &b[&fword&b]"
    if arg-1 is "list":
      send "&b&lSk&f&lChat &b&l| &fThe words added to the chat filter are: &b%{skchat::*}%"
    if arg-1 is "help":
      send "&6-----------------------------------------------"
      send "&6SkChat V1.0"
      send "&6Made By Disvand 0001"
      send "&6New Updates On Minehut Forum Skript Releases"
      send ""
      send "&6Usage:"
      send "&6/skchat add/remove/list/help [word]"
      send "&6/ = or, [] = optional/not needed"
      send "&6-----------------------------------------------"

 

image_2021-12-22_211144.png

image_2021-12-22_211159.png

Edited by Disvand

Vip: 20/12/2021

Skript is fun, I am currently working on SkChat and making stuff for market rank!

| NEWEST VERSION |

https://forums.minehut.com/topic/51451-skchat-v11-release/

1335430724_SkChatLogo.jpg.8d5d2c23ac226fcb4cd300eccd8f07c3.jpg

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...