[CHAT/ADMIN] ChatWarn v3.2- Censor your chat! Warn your players! [1337]

Discussion in 'Inactive/Unsupported Plugins' started by acuddlyheadcrab, Oct 2, 2011.

  1. Offline

    acuddlyheadcrab

    ChatWarn v3.2 (updated 10/29/11)
    Chat censoring, and warning
    Download: 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 :D 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:
    Show 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! :D [​IMG]
     
  2. Offline

    acuddlyheadcrab

    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? :p
     
  3. Offline

    Chillax_Team

    Looks good :D But does it Censor words like this

    Censored Word: Lag
    ex) La.g Laag LaG LAG La-g
     
  4. Offline

    acuddlyheadcrab

    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.
     
    Last edited by a moderator: May 20, 2016
  5. Offline

    acuddlyheadcrab

    Well i'm officially stuck... If anyone wants to help out here's the source code (a download)
     
  6. Offline

    AuZor

    Could you please add an ''enable-kick'' option?
     
  7. Offline

    acuddlyheadcrab

    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 :)
     
  8. Offline

    MonsieurApple

    Please upgrade to latest RB
     
  9. Offline

    acuddlyheadcrab

    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.
     
    Last edited by a moderator: May 20, 2016
  10. Offline

    MonsieurApple

    Approved
     
  11. Offline

    acuddlyheadcrab

    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?
     
  12. Offline

    Squirrelboy1225

    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.
     
  13. Offline

    acuddlyheadcrab

    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?


    1. 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.
    2. 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 :p. 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.
     
  14. Offline

    LastKossack

    wow, ty nice plugin im taking this :D
     
  15. Offline

    acuddlyheadcrab

Share This Page