Repository navigation
Configuration
There are two files to be modified in the config directory:
badwords.jsonresponses.json
The default file looks like this:
{
"fuck": {"severity": "high"},
"bitch": {"severity": "high"},
"ass": {"severity": "medium"},
"shit": {"severity": "medium"}
}Configuration of this is pretty simple, but to stop the plugin from breaking, you have to make sure you get this right.
As of version 1.0, words only have one property, which is severity. As mentioned in the README, severity levels are configurable. Not in this file though. Make sure your severity property corresponds with a severity in the next file.
The default file looks like this:
{
"responses": {
"high": "/mute %s 300",
"medium": "/mute %s 120",
"low": "CENSOR"
},
"severityOrder": ["low","medium","high"]
}
There are two parts to this config: responses, and severityOrder. Let's first talk about responses.
Responses are in relation to a level of severity, and the commands are executed in the server console (so no permissions required). The %s is replaced by the offending player name. It's in the responses section where you create your different severity levels. Alternatively, you can put "CENSOR" in as a response for the server to censor all of the words in badwords.json in the sentence
The second part is severityOrder. This creates a sort of hierarchy between each of your defined severity levels. The first is the lowest, the final is the highest. When a message is being processed, the highest level that the message hits is applied.