ChatReplace
ChatReplace - modify chat messages using regular expressions.
ChatReplace is plugin for the Minecraft wrapper Bukkit that provides a method for administrators to reactively modify chat on a server through matching regular expressions. You could use this to match undesirble words and change them into less offensive ones or censor them completely. Alternatively you could use the plugin to create simple roleplay themed events or enforce a particular style of language on a server.
Features
- Simple and easy to configure.
- Match messages using powerful regular expressions.
- Randomly chooses a replacement for each match from the list attached to each pattern.
Installation
Ensure you are using the latest recommended build.
Before installing, you need to make sure you are running at least the latest recommended build for Bukkit. Support is only given for problems when using a recommended build. This does not mean that the plugin will not work on other versions of Bukkit, the likelihood is it will, but it is not supported.
Configuration
- Configure your settings (config.yml) and choose what type of replacement you want to do.
- Add patterns that you want match to the respective configuration file.
- Configure permissions if necessary.
-
View User Profile
-
Send Message
Posted Dec 3, 2013Pls update! :)
-
View User Profile
-
Send Message
Posted Sep 18, 2012@grandwazir
How do you put that into the substitution file?
-
View User Profile
-
Send Message
Posted Sep 18, 2012@GlabbichRulz
Definitely Nodus
-
View User Profile
-
Send Message
Posted Sep 18, 2012Hi guys, I really like the idea of this plugin but I ran a test on our server and it didn't work. Can you tell me what I'm doing wrong? Here is what I put in the substitution file:
Sorry the format was no good so look at this pastie: http://pastie.org/4748010
example-pattern: pattern: [Hitest] replacements: - Hi all - Hello
This is the Config.yml
debugging: false formatters: append: false substitution: true
Thanks in advance
-
View User Profile
-
Send Message
Posted Sep 6, 2012@GlabbichRulz
I do believe this is a feature of the hacked client, nodus. Correct me if I am wrong..
-
View User Profile
-
Send Message
Posted Aug 7, 2012@MegaNarwhal
Yup. Just put in the right expression to capture it and you can strip out advertising on your server. The following would filter out most web addresses for example: ^((https?\:\/\/)?([\w\d\-]+\.){2,}([\w\d]{2,})((\/[\w\d\-\.]+)*(\/[\w\d\-]+\.[\w\d]{3,4}(\?.*)?)?)?)$
-
View User Profile
-
Send Message
Posted Aug 2, 2012Can this filter web addresses and ip addresses?
-
View User Profile
-
Send Message
Posted Jul 29, 2012@Lukethenuke
I use it on my server to replace swearwords with things like 'kittens'. Regular expression support allows you to easily foil many of the usual work arounds.
-
View User Profile
-
Send Message
Posted Jul 29, 2012@Heruux
You should be able to use capture groups? I think I have a couple in my medievil speech script. Reload command is in the latest version.
@GlabbichRulz
You have to edit the yml manually.
-
View User Profile
-
Send Message
Posted Jul 5, 2012Would be nice with a command to reload the substitution.yml file or the whole plugin. Support for capture groups would also be a great addition if possible.
-
View User Profile
-
Send Message
Posted Jul 1, 2012What are the commands?
-
View User Profile
-
Send Message
Posted Jul 1, 2012I love this plugin. I personally have been using it to replace hack commands with sentences in chat so that people look stupid. But I have a feature request: Can you please an exempt permission node? Something like chatreplace.exempt so I can give it to admins and staff and when they type /pl it won't replace what they've said. This way I can replace /plugins as well since the hack clients we encounter with players usually run /pl automatically. Now the thing is, we don't allow anyone but staff to run /pl or /plugins but it's still funny to replace those commands.
Thanks again and hopefully you'll consider my suggestion :)
-
View User Profile
-
Send Message
Posted Jun 30, 2012This is absolutely awesome, can't wait to see what this turns into :D
-
View User Profile
-
Send Message
Posted Jun 30, 2012Now to craft a regexp that detects usages of verbs after a singular usage of "you" (or "u") and replaces the whole thing with "thou <verb>-est".
In seriousness though, thanks for the excellent plugin!
-
View User Profile
-
Send Message
Posted May 23, 2012@drorex
Currently no.
@codemanj94
I will be updating this soon as I need it for my server again.
-
View User Profile
-
Send Message
Posted Mar 18, 2012Great work! Please update for 1.2.3 Perhaps add permissions for who is effected and who is not?
-
View User Profile
-
Send Message
Posted Mar 12, 2012Does it work for commands? Eg so I can replace '/foo' with '/somereallylongcommand argumentThatsAlwaysTheSame' ?
Also I hope you can update it for MC 1.2, thanks!
-
View User Profile
-
Send Message
Posted Jan 7, 2012@MariuszT
No, the plugin at the moment only concerns itself with chat messages.
-
View User Profile
-
Send Message
Posted Jan 5, 2012Is it possible to make this plugin replace the messages of other plugins or server?