Censor Plugin

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

<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

<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>
    </badword>
</badwords>