This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Plugin - Censor
The censor plugin monitors chat messages for banned words. Whenever a player speaks a banned word he will be warned automatically. B3 has been pre-programmed with a list of profanities in many languages. You can modify the badwords.txt to fit your needs.
Configuration
Config location: b3/conf/plugin_censor.xml
This config file uses Regular Expressions.
settings
#!xml
<settings name="settings">
<!--
max_level: The maximum user level to censor for. Users with a greater level will not be subjected to automatic warnings.
-->
<set name="max_level">40</set>
</settings>
badwords
#!xml
<badwords>
<!--
type: The type of penalty to issue when a user uses a banned word. Can be warning, kick, ban, or tempban
reasonkeyword: The reason keyword to use from plugin_admin.xml
-->
<penalty type="warning" reasonkeyword="cuss"/>
<!--
name: A descriptive name for the badword, usually the plaintext version of the word to ban
lang: uses the iso639a standard abbreviations, http://www.oasis-open.org/cover/iso639a.html. In a couple places I used the full word cause I actually don't know what language it is. I'll get clarification later.
-->
<badword name="dang" lang="en">
<!--
An optional penalty, if it is omitted the default penalty is used.
-->
<penalty type="warning" reason="^7Please don't use profanity" duration="1d"/>
<!--
Badwords must have either a <word/> or <regexp/>. Both are checked case-insensitive.
<regexp/> contains a regular expression to match on words. You can add "\s" to the end or beginning to make sure the word starts or ends with the expression.
<word/> matches the plain word
-->
<regexp>d[a|@]ng\s</regexp>
<word>dang</word>
#!xml
<badwords>
<!--
type: The type of penalty to issue when a user uses a banned word. Can be warning, kick, ban, or tempban
reasonkeyword: The reason keyword to use from plugin_admin.xml
-->
<penalty type="warning" reasonkeyword="cuss"/>
<!--
name: A descriptive name for the badword, usually the plaintext version of the word to ban
lang: uses the iso639a standard abbreviations, http://www.oasis-open.org/cover/iso639a.html. In a couple places I used the full word cause I actually don't know what language it is. I'll get clarification later.
-->
<badword name="dang" lang="en">
<!--
An optional penalty, if it is omitted the default penalty is used.
-->
<penalty type="warning" reason="^7Please don't use profanity" duration="1d"/>
<!--
Badwords must have either a <word/> or <regexp/>. Both are checked case-insensitive.
<regexp/> contains a regular expression to match on words. You can add "\s" to the end or beginning to make sure the word starts or ends with the expression.
<word/> matches the plain word
-->
<regexp>d[a|@]ng\s</regexp>
<word>dang</word>





