Jump to content

Anti swear skript (Easy to add-on to)


FrBird

Recommended Posts

on chat:
    message contains "put f word here"
    cancel event
    set the chat message to "****"

on chat:
    message contains "put s word here"
    cancel event
    set the chat message to "****"


on chat:
    message contains "put b word here"
    cancel event
    set the chat message to "*****"


on chat:
    message contains "put d word here"
    cancel event
    set the chat message to "****"

on chat:
    message contains "put n word with hard r here"
    cancel event
    set the chat message to "*****"
    make console execute command "/kick %player"

on chat:
    message contains "put n word with a here"
    cancel event
    set the chat message to "*****"
    make console execute command "/kick %player%"

Link to comment
Share on other sites

Adding on to this:

 

on chat:
    message contains "1" or "2" or "3" or "4" # and so on
    send formatted "&c[Filter] &f%player% just said &c%message% <tooltip:&cClick to mute!><command:/tempmute %player% 1d Chat Filter>[Punish Player]" to all players where [input has permission "filter.use"] 
    cancel event

 

Link to comment
Share on other sites

  • 5 weeks later...
Quote

 

on chat:
    message contains "put f word here"
    cancel event
    set the chat message to "&a&l|CENCORED|"

on chat:
    message contains "put n word with hard r here"
    cancel event
    set the chat message to "&a&l|CENCORED|"
    make console execute command "/mute %player% 8h Rasicm."

    broadcast &a&l%player% &7has been muted for &a&lrasicm&7!

 

I remade this Skript a little to something I think I think is more useful. 

Link to comment
Share on other sites

  • 3 weeks later...

Personally I recommend skipping Skript here and using a plugin which is designed for this sort of thing.  There's quite a few chat filter plugins, many of which support Regex.

For mild swearing I use ChatFilter by Ranull, because it allows players to turn it off client-side with a command.

For slurs and other instant-ban words I used to use GriefPrevention but I've lately switched to CMI.  In both cases there's a way to select certain words which, when said, get filtered out and then instantly ban the user.  GriefPrevention is free, CMI is not.  

Link to comment
Share on other sites

Moved to Skript Releases. All Skript-related things belong in the Skript category.

rose city STICKER

RosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaR

i code, animate, develop, UI design, learn, and adapt, as well as make servers, of course

💐Joined Minehut sometime in 2014
💐VIP sometime in 2018
💐Legend in January 2021
💐Helper on 4/11/2021
💐♥ (Retired) on 5/17/2021
💐 Moderator on 8/18/2023

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