ChatWarn v3.2 (updated 10/29/11)Chat censoring, and warningDownload: ChatWarn.jar, BukkitDev ChatWarn is a plugin that censors configurable words from a chat message, and replaces them with a new word (also configurable ). (NEW) ChatWarn also will carry out a penalty at a certain number of warnings! Features: - Censors a max of 3 words - Replaces each word with another configurable word - Warns the player - Offers 2 penalties at a certain number of warnings - 3 different types of penalties for each penalty number ("kick", "ban", or "kill") - Configurable warning messages - Info in log/console Upcoming features: - Possibly more types of penalties - I'm trying for better string replacement/censoring Changelog: v3.2 all penalties now work Yay! userdata and warncount now saves properly cleaned up even more debug messages (fixing the plugin took a lot of debugging...) fixed the checks of the config values being compatible v3.1 fixed method to create a new key for players who have not spoken fixed the penalties not being executed v3.0 updated to work with CBrb#1337 switched censoring style back to replacing strings added 2 more censor-able words added 2 more replacement words for the censor words many unnecessary debugging message removed added kill penalty fixed many other small bugs/NPE's CAVEAT: As of v3.0, the config methods used are now deprecated v2.x ←(Bugged, and broken) added 2 penalties added 2 types switched censor methods to a filter style ← main bug added userdata with warnings added many config options v1.0 Released plugin! Fixed some event errors Config working properly Pre-release notes: Spoiler (Move your mouse to the spoiler area to reveal the content) Show Spoiler Hide Spoiler v0.2.1 (Still just a word replacement plugin) Plugin censors the just the word now, and not the whole message Debug info added, with on/off in config v0.2 Config added: with censor words and replacement words Console info added v0.1 Got player chat events working Want me to learn faster? Donate to boost my spirit!
My planning for the code for the update is done, but im trying to figure out how to translate it into the actual code. Does anyone know how to check if a string contains a word in a list from a yml key?
Almost ready to update to (better) new version! Just theoretically one more bug to kill Ugh... I guess there's a problem with my code. If anyone wants to try to fix it, the java files are in the jar ChatWarn v2.4 failed lol EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Oh, yeah i totally could, but right now the new code is messed up. Since you've responded, i'll try to debug it again
I'll have to fix it then. Hold on a bit UPDATED! Yay! The plugin now works for rb#1337, and actually warns and censors like it said it did. See the post for more details EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Just curious; are people still getting awarded the plugin developer tag? Are we supposed to ask for one? Is there going to be anything like that for bukkit dev?
If it does do things like wo.rd, WORD, WoRd, Wo-rd, wo rd, wo_rd, etc, then I will probably add it to my server. And also, is it configurable so that you don't have to use penalties, but just censor it? I don't want to kill or kick anyone for language. Thanks.
Another idea i had for this plugin was to make a way to "save" the last 15-20 lines of chat from each person, and upon an admin-only command, admins could "rollback" the chat to one or two lines before the current. Has that been done before? Mreow? The censor should ignore cases (like word vs. WORD/wOrD), but it doesn't really catch the ones with extra characters between the configured censored characters. So no to the wo-rd, wo_rd and wo rd. I'm actually not sure if not defining a penalty would give errors or not. Theoretically, it shouldn't, but i've never tested it . I think i'll add an option to turn off penalties and warnings soon. If you're looking for a way to censor words like you asked there are some better plugins out there Like RegexFilter, and some other one's that I can't remember lol.