This plugin prevents commands or chat messages that matches a regular expression.
To add a regular expression for a command use (invalid regex will be ignored):
Code (Text):
/commandfilter add <username OR * for all users> <regex>
To remove a regular expression for a command use:
Code (Text):
/commandfilter remove <username OR * for all users> <regex>
Note! ^ and $ will be automatically added. Put .* at the begining and at the end of the regex to filter commands or messages that include your keyworld or regex.
Use /chatfilter to add filters to chat messages.
username argument specifies who will be affacted by the filter. Note that users are stored as UUIDs rather than usernames since version 1.1.0.
To change a configuration use:
Code (Text):
/commandfilter config <config name> <value>
Available configurations:
- filter-ops: Filter commands and chat messages by operators. (defaults to true)
Example filters:
Code (Text):
/commandfilter add * kill @a
This will prevent everyone from using /kill @a.