/BannedWords

A simple CS2 plugin that lets you set a configurable list of words that will result in an automatic silence or gag.

Primary LanguageC#GNU General Public License v3.0GPL-3.0

BannedWords

A simple CS2 plugin for CounterStrikeSharp that lets you set a configurable list of words that will result in an automatic silence or gag.

Requires CS2-SimpleAdmin

[ Credits ]

Important

The idea and some of the code structure comes from ExtraUtilities by johandrevwyk

[ Configuration ]

Note

Config located in /addons/counterstrikesharp/configs/plugins/BannedWords/BannedWords.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

{
  "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."
}