BadWords
An auto censor plugin that enables you to stop worrying about players swearing on your server. The number of warnings can be specified, as can the action that is taken once the warnings are expired (kick or ban).Features:
- Individual words or entire phrases supported
- Regular expression support
- Banned words can be substituted for less offensive words
- Admin can define how many warnings players get
- Admin definable punishment (kick or ban)
- Case insensitive matching
- Only whole words or phrases are matched (i.e. "the" would not match in "tether")
- Admin can define who gets notified of profanities
- New to 1.31 - Update checking can now be disabled
- New to 1.30 - Warnings can now be reset by an op
- New to 1.30 - Warnings can be configured to expire after a set time
- New to 1.24 - Fixed bug causing players to be warned of remaining warnings, when warnings -1 was set in config
- New to 1.23 - Fixed bug causing sporadic exception when adding or delete word from banned list in game
- New to 1.22 - Banned words can now be substituted for less offensive words
- New to 1.22 - Changed command from /bw to /badw to avoid collisions with other plugins (e.g. ButtonWarp)
- New to 1.2 - Various admin commands now available in game (see details below)
- New to 1.2 - Log censored messages
- New to 1.2 - Server logs and Ops are now notified when an update to BadWords is available
- New to 1.2 - Permission support
Example word definitions:
- smell (simple match - will match smell either on it's own or in a sentence, not smelly)
- bu+?m (will match bum or buuuuum or any number of "u"s in the word)
- you are smelly (phrase match - will match you are smelly, not you or are or smelly on their own)
- \w*?poop\w*? (substring match - will match poop or poophead or motherpooper)
- idiot:silly (substitution, all instances of idiot will be replaced with silly)
Banned word substitution:
In the config file, it is now possible to substitute a banned word or phrase for a less offensive alternative. For instance, the example below would replace all instances of the word "bum" with the word "bottom": bum:bottom The following example would replace all instances of the phrase "You are stupid" with the phrase "You are silly": You are stupid:You are silly
Admin commands:
- /badw list List all banned words
- /badw add <word> Add a word to the banned list
- /badw delete <word> Delete a banned word from the list
- /badw warnings <playername> Find out how many warnings a player has left
- /badw reset <playername> Reset a player's warnings to the default value set in the config file
Permissions nodes:
- badw.all Access all BadWords admin commands listed above
Default Configuration file details:
NewVersion:checkForUpdates: true Check for new versions of BadWords
notifyOp: true Notify ops of a new version of BadWords when they join
Warnings:
default: 3 How many warnings should a player receive
timeout: 168 After how many hours of not swearing should a player's warnings expire (-1 to disable expiry)
Action:
ban: true Should players be banned when warnings have expired (if false, they are kicked)
Log:
swear: true Should messages containing banned words be logged
Notify:
player: true Should the player be notified of their remaining warnings when they swear
others: true Should all other players be notified when a player swears (the swear is not displayed)
BannedWords: List of bad words/phrases (with optional substitutions)
- bum
- idiot:silly
- you are crap
ToDo:
See tickets