[FUN/CHAT] Taboo v 0.2.2 - Ban words or phrases [1060]

Discussion in 'Inactive/Unsupported Plugins' started by ASCIIDuck, Jul 22, 2011.

  1. Offline

    ASCIIDuck

    Taboo - Making words taboo ( jar)
    Version: 0.2.2
    This is a very small plugin I designed to combat swearing, flamewars and overused memes on my server. While some people are strongly opposed to things like language filters, I like the ability to deter users from starting flamewars. It's also fun to set saying the word "Voldemort" to spawn zombies at the player's location.

    Features:
    • Configurable word bans and punishments
    • Punishments can be: strike with lightning, spawn 3 zombies, spawn giant or kick
    • Permissions can be used to apply a word filter to a group of people.
    • Flexible configuration.
    • Ability to have taboo words replaced with asterisks.
    Github


    https://github.com/ASCIIDuck/Taboo
    Jar link


    Changelog:
    Version 0.2.2
    • Changed permissions to use an includePermission and an excludePermission
    • Added explode to possible actions
    • Added word substitution patterns (have taboo word replaced with another)
    Version 0.2
    • Changed configuration format
    • Added the censor option, which replaces taboo words with asterisks.
    • Added Permissions support.
    Version 0.1
    • Released plugin.
    Future Features:
    • More actions (suggestions welcome)
    • Actions able to take parameters
    • More flexible program structure allowing for others to add their own actions.
    • In-game commands to modify Taboos.
    Readme


    Show Spoiler

    ====Configuration===
    The config.yml must be created manually at the time being (Taboo/config.yml in your plugins directory).

    The format is as follows:

    Code:
    <tabooname>:
        actions:
        - <action1>
        - <action2>
        patterns:
        - <bannedword1>
        - <bannedword2>
        excludePermission: <permissionNode>
        includePermission: <permissionNode>
    
    ==TabooName==
    The tabooname can be anything and is not used by any part of the code. It's just there to help you organize things. It is required.

    ==Actions==
    These list what happens when someone breaks the taboo. The current actions are:
    lightning: strike the player with a bolt of lightning
    kick: kick the player
    giant: spawn a giant at the players location
    zombies: spawn three zombies at the players location
    explode: an explosion at the player's position, half the strength of TNT

    ==Patterns==
    These are the words that are searched for. Each word is searched for in a player's message, ignoring case.
    If you set "word" to be taboo, it will match against "sword","password","crossword", etc. If you want it to only match word, define as follows:
    - '(^|\W)word(\W|$)'
    Also, you can define a pattern that will replace the taboo word with another word. To do this define the pattern like so:
    - 's/rofl/rolling on the floor laughing/'
    This will replace "rofl" with rolling on the floor laughing in the player's message before it is displayed.

    ==Permissions==
    Permissions are checked using the new, built in Bukkit Permissions. There are no plans to make this compatible with older permissions plugins.
    The node you specify will be prepended with "taboo.", so if you set the excludePermission to be "admin", the permission a user would need is "taboo.admin".
    If no includePermission is specified it will default to applying to everyone.


    ==Example===
    Code:
    politics:
        actions:
        - lightning
        patterns:
        - obama
        - glenn beck
        censor: true
        permission: nopolitics
    
     
    Massimo1993 likes this.
  2. Offline

    ASCIIDuck

    @mottley007
    Right now I don't have the plugin generate a config file, as I don't think there really any good defaults. Since this has come up a few times now the next version will auto-generate a configuration file if none exist. In the meantime you can create the configuration file manually.
     
  3. Offline

    mottley007

    How do you add more ban words then??
     
  4. Offline

    ASCIIDuck

    The readme in my first post explains how to configure the plugin.
     
  5. Offline

    Massimo1993

    @ASCIIDuck

    this is the best plugin for censore ever make for bukkit xD (change 1000 with 1060 or 1000+ 1060)
     
  6. Offline

    Foxtrot200

    I like your plugin for the regex. It makes it easier for me because I can easily allow words that may otherwise be seen as a swear with other plugins.

    I'd like more options on the actions, though. Lightning, explosion, and zombies are all griefable, kick is too harsh, in my opinion, for bad language, and giant doesn't do much. It may even encourage swearing. The first three are griefable because a player can run into a group of other players, swear, and inflict damage on the surrounding players. Would it be possible to get some additional actions? My suggestions would be message, damage, fine, jail, ignite, and hide (stop the chat message from being sent).

    Though I don't use Bukkit's permissions system, your plugin has given me no trouble and it's working very well!
     
  7. Offline

    ASCIIDuck

    @Foxtrot200 So far the actions have mostly been jokes. I planned on adding message, damage and a teleport (these I planned on waitning until I added the ability to have actions with parameters). Also, considering adding a temporary suspension of permissions on a user (though I haven't looked at this enough to actually plan it yet). Fine, ignite and hide are definitely good ideas that will go onto the list, thanks for the suggestions.
     
  8. Offline

    alegomaster

    You should allow the mod to replace the swear word ( or any bad word) to something like "I am stupid" or such, which will be configured in the config file.
     
  9. Offline

    Foxtrot200

    There is already a way to have the taboo word replaced with something else. It's actually possible to use regular expressions to match and replace the entire sentence with something else. I had inadvertently done this by screwing up my regex filters. I believe it worked something like this in the Taboo config file:
    Code:
    's/\bword\b/***/'
    Where word is the taboo word and *** is the replacement text.

    This was the result of me trying to directly transfer a censor list I had made for an IRC bot to Taboo.
     
  10. Offline

    xsolar66

    Hi @ASCIIDuck ,

    There's a server log message which appears every time someone chats;

    "[INFO] Doing onPlayerChat in TCL"
     
  11. Offline

    ASCIIDuck

    @xsolar66
    Sorry, that was me testing something and then completely forgetting to remove the debug message. I've uploaded a new jar that won't spam your server log, links are updated in the first post.
     
  12. Offline

    Cyberpew

    Awesome!
     
  13. Offline

    alexmack929

    Brilliant plugin!

    One improvement I would love would be a 'executecommand' action. Maybe the confit would look like this:


    politics:
    actions:
    - lightning
    patterns:
    - obama
    - glenn beck
    censor: true
    permission: nopolitics
    command(if action is present): /example command

    This would be great for me as it would let me have more freedom and flexibility with this plugin!
     
  14. Offline

    Phlegm

    i did this:
    Code:
     swearing:
           - f***
           - sh**
           - pr***
            etc.
            censor: true
            permission: noswearing
    
    but i actually did put swear words and i didnt put any etc.
    is that right?
     
  15. Offline

    xsolar66

    A suggestion - "damage health"

    Lightning is annoying as it keep striking people around the player who cursed. Same goes for explosions. I need something that will only directly affect the player - a configurable reduction of health would be perfect
     
  16. Offline

    Phlegm

    This is mine: <Edit by Moderator: Redacted mediafire url>
     
    Last edited by a moderator: Nov 13, 2016
  17. Offline

    Mathew Alden

    I just had a great idea for a new punishment. :D You should make it so that people get teleported to coordinates or other worlds. This would allow things like this:
    1. Jail. You make an bedrock jail at, say, 10,0,10. Then you have swearing people get teleported to 10,0,10. There would be an admin command to teleport them back to the default spawn, or you could have it on a configurable timer.
    2. Hell. You could make swearing people get teleported to the nether (or any other world specified.) There would also have to be a way to go back without a portal incase they were sent to a seperate overworld and the server didn't have some sort of gate plugin...

    U like?
     
  18. Offline

    whitehooder

    please make a temporary banning thing like when they say a word that's on the list they get banned for several minutes/hours/days!

    (Just a suggestion!)
     
  19. Offline

    jazzb

    Thanks for the excellent plugin !!

    This is just what I needed to help administer a server with a lot of younger players who had the odd older friend online from time to time :)

    So I had a bit of fun and added a regex search string for letter combinations/substitutions of a few swear words and used lightning, zombies, giants, etc plus changing the words they typed. I am guessing that in the end the embarrassment of some of the things that were substituted will wind up being the most effective, and even if they are ignored, at least it keeps language at an acceptable level for the younger folks.

    I was thinking though that the ability to run a server level command (e.g. switch off creative mode) would be useful. Also the ability to run multiple commands, or have multiple repeats of a command, would be really helpful.

    Any chance that these could these find their way into the next release ??
     
  20. Offline

    AuZor

    @ASCIIDuck

    I'm not getting any config file of some sort at all.
     
  21. Offline

    nodice

    When I reload my server it doesn't generate a config file in the plugins directory. Am I doing something wrong? ):

    What should I name the YAML File that I create in the Plugins folder?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  22. Offline

    Refalm

  23. Offline

    SBHouse

    @ASCIIDuck

    Are you going to be moving this to BukkitDev and updating for newer versions? This has been my favorite tool for controlling bad language on my server. My players don't want to take the damage or risk setting their wood items on fire.

    Love this plugin. If you decide not to continue it, I hope you'll let someone else take over. Thanks.
     
  24. It seems that the config file does not appear in 1.5.1 or am I missing something?
     

Share This Page