2022-02-12 21:43:20 +00:00
|
|
|
# Hush [![Build Status](https://ci.jojodev.com/api/badges/Minecraft/Hush/status.svg)](https://ci.jojodev.com/Minecraft/Hush)
|
2020-09-20 21:45:42 +00:00
|
|
|
A plugin to monitor chat for forbidden phrases.
|
|
|
|
|
|
|
|
## Watch Lists
|
2022-02-12 16:15:37 +00:00
|
|
|
Watchlist are groups of categories Hush monitors for. To enable a watchlist for a player,
|
|
|
|
they should be given the `hush.<watchlist_name>` permission.
|
2020-09-20 21:45:42 +00:00
|
|
|
|
2022-02-12 16:15:37 +00:00
|
|
|
### Categories
|
|
|
|
A category is a group of regex filters, and the actions to run when a player matches one of those filters.
|
|
|
|
An example of a category is shown below:
|
2020-09-20 21:45:42 +00:00
|
|
|
|
2022-02-12 16:15:37 +00:00
|
|
|
```yaml
|
|
|
|
# "ban" category
|
|
|
|
ban:
|
|
|
|
# Filters to search for in chat
|
|
|
|
filters:
|
|
|
|
- "heck"
|
|
|
|
- "fricks"
|
|
|
|
# Optional, commands to run when a filter matches. {player} is replaced with the player's name.
|
|
|
|
commands:
|
|
|
|
- "ban {player}"
|
|
|
|
# Optional, should the message that matched the filter be cancelled? Default is "false".
|
|
|
|
cancel_msg: true
|
|
|
|
```
|
2020-09-20 21:45:42 +00:00
|
|
|
|
2022-02-12 16:15:37 +00:00
|
|
|
## Permissions
|
|
|
|
* `hush.admin` - allows access to the `hush` command
|
|
|
|
* `hush.<watchlist_name>` - used to determine if a player's messages should be checked by a watchlist
|
|
|
|
|
|
|
|
### Commands
|
|
|
|
* `hush reload` - reloads the plugin config
|
2020-09-20 21:45:42 +00:00
|
|
|
|
|
|
|
## Example Config
|
|
|
|
[Config](src/main/resources/config.yml)
|
|
|
|
|
|
|
|
## License
|
|
|
|
[MIT](LICENSE)
|