Inactive [CHAT] CensorIt v0.1 - The strict yet versatile censoring system [1.0.1-R1]

Discussion in 'Inactive/Unsupported Plugins' started by ZachBora, Nov 8, 2011.

  1. Offline

    ZachBora

    [​IMG]
    Version : v0.1
    Downloads : http://dev.bukkit.org/server-mods/censorit/

    Tired of people cursing on your server and reading their immature messages or what they think of your family?
    Search no more! CensorIt is the plugin for you. CensorIt has been specifically designed to remove unwanted words no matter how they are spelt, let it be with special characters, repeated characters, spaces or capitals!
    The plugin contains a list of censored words and a list of allowed words. This way you can censor for example ass without censoring glass, assassin, grass, etc. You only need to add the normal form of the word in lower case. For example if you censor only ass, the plugin takes care of preventing ass, AsS, @$$, a ss, a.ss, a s s or a_s_s.
    The plugin also has a learning function with which verifies online for the existence of a word and automatically adds them to the allowed list. It makes censoring a little slower at first, but as words are added automatically to the allowed lists it will become faster.
    The plugin also contains a public API which can be used by Other plugins to censor many different things involving text like signs, whispers, shouts (these features are not included in this simple plugin).

    Installation
    • Get the latest recommended build of CraftBukkit here
    • Download file CensorIt.jar and place it in your Plugins subfolder
    • Start the server once and stop it.
    • Go in folder Plugins\CensorIt
    • Open file censored.txt and add the words that you want to censor. It is suggested to modify these files in Notepad++.
    • Optional : Open file allowed.txt and add the words that you want to prevent from being censored. (e.g. assassin, grass, glass)
    • Optional : Open file replacement.txt and add the words that you want to use as replacement words when /censorit replaceon is active. (e.g. cloud, hug, happy)
    • Start your server
    Commands

    General commands (require CensorIt.word and/or CensorIt.admin permissions)
    • /censorit config - List configuration commands.
    • /censorit word - List word management commands.
    CensorIt.admin commands

    • /censorit enable - Server-wide enable censoring.
    • /censorit disable - Server-wide disable censoring.
    • /censorit reload - Reload configuration.
    • /censorit verify - SLOW! Verify words online (added to allowed list). Currently using http://dictionary.cambridge.org/ dictionary. Other plugins can change this property through the API.
    • /censorit unverify - Stop verifying words online.
    • /censorit replaceon - Enable word replacement (e.g. bird, flower).
    • /censorit replaceoff - Disable word replacement.
    CensorIt.word commands

    • /censorit censor|uncensor - Censor or uncensor a word. (e.g. ass, fuck)
    • /censorit allow|unallow - Allow or unallow a word. (e.g. grass, assassin)
    • /censorit replace|unreplace - Add or remove a replacement word. (e.g. bird, flower)
    How to connect to the API from your plugin

    • Add an external reference to CensorIt.jar
    • Modify your onEnable event to verify if the CensorIt plugin is present like so : getServer().getPluginManager().isPluginEnabled("CensorIt")
    • In the class you want to use the API in, import com.worldcretornica.censorit.CensorItAPI
    • You do not need to instantiate the API, it is a static class and contains the same configuration as other plugins. Just type CensorItAPI.something to get the list of available commands.
    • Basic usage : use the function CensorItAPI.censor(string) to receive the string censored
    Things to do

    • Save the censoring state configurations : verify, enabled, replace words. Currently only the word lists are saved.
    • Add option to color censored words/replacement words.
    • If possible, need to find a way to disable censoring for the current player. Best would be to leave this to other plugins to implement. If someone has a suggestion on how to implement this without breaking other plugins please tell me how.
    Changelog

    Version 0.1
    • Initial release
     
    emericask8ur likes this.
  2. Offline

    meee

    Possible to censor !!!!!!!!!!!!!! and ?????????????? ?
     
  3. Offline

    ZachBora

    No
     
  4. Offline

    Shooty

    @ZachBora

    Awesome works, thanks dude, i'll try toonight :)
     
  5. Offline

    emericask8ur

    Good work my friend
     
  6. Offline

    Butkicker12

  7. Offline

    ZachBora

  8. Offline

    Butkicker12

    Yeah I decompiled it after.
     
  9. Offline

    Karlkorv

    Nice idea, nice plugin
     
  10. Offline

    atimeforglory

    It isn't working for me for some reason. The commands work to enter words into the lists, but nothing is censored. Please help
     
  11. Offline

    ZachBora

    Could be a conflict with one of your other plugins. Check if you have any that modifies chat and perhaps speak to the developper of it about supporting CensorIt. It's very easy to hook into.
     
  12. Offline

    The PC Tech Guy

    Hi Zach, just wanted to let you know that this is the best censor plugin I have ever seen - it is simple, very good at stopping work-arounds, and, best of all - it can verify words from the Internet! Please keep up the good work!
     
  13. Offline

    ZachBora

    Thanks, there was a lack of such plugin and I made it. I just wish more people used it. It's only got 142 downloads, there's no telling how many use it.
     
  14. Offline

    md_5

    Latest rb please
     
  15. Offline

    ZachBora

    Done!
    That was easy
     
    The PC Tech Guy likes this.
  16. Offline

    md_5

    First approval of the day for me:)
     
  17. Offline

    Discover

    Great plugin! I switched to EssentialsChat and this plugin for the chat censor instead of mChatSuite. Much better and less memory usage. Thanks :)
     
  18. Offline

    ZachBora

    Thanks! If you encounter any problems or see anything I should improve please share your thoughts.
     
  19. Offline

    Discover

    I think it would be great if it came with a pre-defined list of generally bad words and that you can add spaces to the "allowed.txt" file. For example if someone were to say: "...that item..." and you had the word "tit" censored, it would still show up in the chat as: "tha @?& em" Other than those few additions I would say your plugin is a great sddition to my server. Thanks again! :D
     
  20. Offline

    ZachBora

    This could be done.
    This is one of the downside of having such sytem. I could make it a config to ignore space. I had originally done it so it censors "t i t" and "fu ckti tsuc k" etc..
     
  21. Offline

    Discover

    Oh I see, anyway great plugin still! Thanks :)
     
  22. Offline

    beernutz

    Any chance this could censor SERVER messages? there are some messages we don't want the server to broadcast, but we cant seem to find the culprit or how to make it stop.
     
  23. Offline

    ZachBora

    You can find plugins that record commands. I personally use ChatLogger but there are other plugins.

    CensorIt was made so other plugins could use it's potential. I cannot replace other plugins broadcast message. When someone types /say text here, it doesn't throw a "broadcast" event that I could catch. And I wouldn't want to replace other plugin's /say as that would mean handling permissions etc. My plugin contains an API that other plugins can use to censor text. All they have to do is simply call 1 function.
     
  24. Offline

    beernutz

    How would you go about determining which plugin is broadcasting messages that you don't want short of disabling plugins one at a time (which i really don't want to do on a live server)?

    Thanks for any advise you can throw my way!
     
  25. Offline

    ZachBora

    You ought to know which plugin is giving you the /say command. Commandbook, Essentials... If you are using just vanilla bukkit then it is something in the OP powers. I do not think the vanilla throws an event for it either.
     
  26. Offline

    beernutz

    You WOULD think so, but it is not at ALL clear. The logs show:

    Code:
    2011-12-29 02:51:31 [INFO] beernutz's gamemode has been set to creative.
    A grep through the entire plugins folder shows no matches for either "gamemode has been" or "has been set to"

    I just cant seem to locate the plugin or find a way to suppress the message from being broadcast to the entire server.

    It occurs to me that i am close to hijacking the thread so i will leave it there, but if you have any more info or advise i would be grateful.
     
  27. Offline

    The PC Tech Guy

    Um... yes, this is what is printed in the server console only. Nobody else sees this. Try testing this with someone else on.
     
  28. Offline

    beernutz

    I wish that were the ONLY place it was printed. Unfortunately my entire server sees that message. not just console.

    Just wish i could track it down.
     
  29. Offline

    ZachBora

    It doesn't happen on mine so it's one of your plugins. But this isn't the place to discuss that, please make another thread on the help forum.
     
  30. Offline

    effortless

    This is currently stopping me using this at the moment. Great plugin, but i really don't want to have to keep typing "/censorit replaceon" every time I start the server
     

Share This Page