-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,35 @@ | ||
# BannedWords | ||
A simple CS2 plugin that lets you set a configurable list of words that will result in an automatic silence or gag. | ||
|
||
## [ Configuration ] | ||
|
||
> [!NOTE] | ||
> Config located in /addons/counterstrikesharp/configs/plugins/BannedWords/BannedWords.json | ||
> | ||
```json | ||
{ | ||
"BanSettings": { | ||
"PlayerBanType": "silence", // Usage: silence, gag | ||
"DurationInMinutes": 5 | ||
}, | ||
"BannedWords": [ | ||
"word1", | ||
"word2", | ||
"word3", | ||
], | ||
"ConfigVersion": 1 | ||
} | ||
``` | ||
> [!NOTE] | ||
> Ban chat messages located in /addons/counterstrikesharp/plugins/BannedWords/lang/en.json | ||
> | ||
```json | ||
{ | ||
"silencemsgplayer": " {Red}[Server] - {Default}You have automatically been silenced for {0} minutes due to {1}", | ||
"silencemsgserver": " {Red}[Server] - {LightRed}{0} {Default}has automatically been silenced due to {1}", | ||
"gagmsgplayer": " {Red}[Server] - {Default}You have automatically been gagged for {0} minutes due to {1}", | ||
"gagmsgserver": " {Red}[Server] - {LightRed}{0} {Default}has automatically been gagged due to {1}", | ||
"banreason": "using a banned word." | ||
} |