Jump to content

chat filther


gabinun

Recommended Posts

Here's the updated version without the code box:

This is a chat filter that prevents players from using special characters that are not on a typical keyboard. It also blocks double quotes (") and hyphens (-), and (]). The filter applies to non-OP players.


on chat:
 player is not op
 message does not match "^[&a-zA-Z0-9&?!@#$^+\-_=~`':;/()|{}<>., ]$"
 cancel event
 send "&cYou cannot say %message%"

i cant unblock ", -, and [ because skript wont let me

Edited by gabinun
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...