FrBird Posted March 11 Share Posted March 11 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 More sharing options...
SBurningFlameS Posted March 11 Share Posted March 11 ty Link to comment Share on other sites More sharing options...
snowi Posted March 12 Share Posted March 12 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 More sharing options...
3TSV Posted April 10 Share Posted April 10 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 More sharing options...
Cav Posted May 1 Share Posted May 1 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 More sharing options...
rosabel Posted May 3 Share Posted May 3 Moved to Skript Releases. All Skript-related things belong in the Skript category. RosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRi code, animate, develop, UI design, learn, and adapt, as well as make servers, of courseJoined Minehut sometime in 2014VIP sometime in 2018Legend in January 2021Helper on 4/11/2021♥ (Retired) on 5/17/2021 Moderator on 8/18/2023 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now