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.
Pls update! :)
@grandwazir
How do you put that into the substitution file?
@GlabbichRulz
Definitely Nodus
Hi 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
@GlabbichRulz
I do believe this is a feature of the hacked client, nodus. Correct me if I am wrong..
@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}(\?.*)?)?)?)$
Can this filter web addresses and ip addresses?
@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.
@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.
Would 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.
What are the commands?
I 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 :)
This is absolutely awesome, can't wait to see what this turns into :D
Now 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!
@drorex
Currently no.
@codemanj94
I will be updating this soon as I need it for my server again.
Great work! Please update for 1.2.3 Perhaps add permissions for who is effected and who is not?
Does 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!
@MariuszT
No, the plugin at the moment only concerns itself with chat messages.
Is it possible to make this plugin replace the messages of other plugins or server?