NoobResponse
NoobResponse - Automatic Reply with Message and/or Actions!
This is THE plugin that will save you 1000 keystrokes a day!
I made this plugin because I myself am a server owner, and the innumerable amount of noob questions I was asked day after day was becoming simply intolerable... "How do I change my skin?", "Can I be an op?", etc.
And that's why I created this plugin, it's an automatic responder/chatbot/messager which will respond/reply to chat messages. You can set up triggers the plugin should respond to. For example:
- Player: "Can I get op?"
- Plugin: "No." And at the same time, the player would be killed or teleported or kicked, ...
NoobResponse requires Java SE 7 to run.
Video
All credits for the video go to alien1947in.
Commands
In this version, the trigger ID what we use to reference a specific trigger. Trigger ID's are currently case sensitive. If you create a trigger with the same ID as an existing one, it will be overwritten.
All command permissions default to op.
/noobresponse
The main plugin command. Subcommands & permissions are:
- /noobresponse reload - Reloads the plugin's config, discarding any new triggers. (noobresponse.reload)
- /noobresponse save - Saves the plugin's config, overwriting any changes that were made. (noobresponse.saveconfig)
- /noobresponse help - Prints a colourful help message. (noobresponse.help)
- /noobresponse version - Displays the version of the plugin you are running. (noobresponse.version)
/nradd
Command to add basic keyword triggers, similar to version 2.0. Note that spaces are allowed in the response, but not in keywords.
Permission: noobresponse.add
Usage: /nradd <triggerID> <keywords> <response>
Example: /nradd exampletrigger keyword1,keyword2,no,spaces,please This is the response.
/nrlist
Command to list all loaded triggers and their responses. To view keywords & other details use /nrview. Permission: noobresponse.list Usage: /nrlist
/nrview
Command to view all properties (keywords, response etc) for a trigger.
Permission: noobresponse.view
Usage: /nrview <triggerID>
Example: /nrview exampletrigger
/nrdel
Deletes a trigger. Cannot be undone.
Permission: noobresponse.delete
Usage: /nrdel <triggerID>
Example: /nrdel exampletrigger
/nrmodify
Changes properties of a trigger. (More info here: Modify command)
Permission: noobresponse.modify
Usage: /nrmodify <triggerID> <property> <value>
Example: /nrmodify exampletrigger cancelmessage true
/nrwizard
Starts a NoobResponse wizard with the given trigger ID. You can exit at any time by typing 'cancel'.
Permission: noobresponse.wizard
Usage: /nrwizard <triggerID>
Example: /nrwizard newtrigger
Permissions
- noobresponse.ignore - Noobresponse ignores you. Completely. (default: false)
- noobresponse.noaction - Actions are not applied to you, even if you trigger a response. (default: op)
- noobresponse.nocancel - Your messages will not be cancelled. (default: false)
- noobresponse.norespond - Noobresponse will show a chat response to anything you say, but actions may still be applied. (default: false)
- noobresponse.setup - Yes, it is still here. It provides access to all the commands. (default: op)
- noobresponse.* - Access to all commands + being ignored. (default: false)
Configuration
The best way to set up a Trigger(= Response) is to use the wizard we have built in. The command for the wizard is "/nrwizard <triggerID>" Make sure you choose a unique triggerID!
List of replacements here. A full list of actions is available here.
If you really want to set up triggers in the config manually, you can copy the example trigger and modify it, or set up old-style triggers in config.yml under 'messages'. (these will be converted automatically on server startup/reload)
For reference, the old style actions & variables can be found here.
FAQ
Q: Is the response shown to all players?
A: There is a configuration setting for this, the wizard will ask you.
Plugin Metrics
This plugin uses PluginMetrics to get this data: (click the image to see more information)
If you like what we're doing, consider donating :) Please use the donate button in the top right.
@ArtBorax
Ok, I apologise about not providing support for the Cyrillic characters issue. Since the plugin uses the Bukkit API to get the messages out of the config files, the character support is most likely a Bukkit issue.
Since the plug abandoned and has not been corrected the problem with the Cyrillic alphabet. I beg to lay out the sources.
Sources in the studio!
@ManBeastPigDev
I'm not quite sure what you mean by that. Are you trying to set a command action for a trigger?
Could we get some example configs for the commands and arguments. I've tried allsorts and nothing works for me. I just dont get why there are 2 sets of commands. I think i followed the replacements and actions but i can't get anything out of it. I just want to smite someone for saying they're from planet minecraft or maybe warp them to their doom perhaps.
thanks
awsome :)
ticket has soured, though his look.
http://dev.bukkit.org/server-mods/noobresponse/tickets/27-latin-characters-are-and-the-cyrillic-not/
@Liger_XT5
You could use excluded keywords (use the trigger wizard or storage.yml) to make sure you don't pick up too many unrelated messages.
@Javacow
A simple chat override fore rules and agree would cause a number of issues.
Players suggesting "Hey So-n-so, you need to agree to the rules" or the guys not seeing the command and bluntly says "I agree to the rules, now what?" Doesn't really help that I have a force chat for when someone does use the agree command, it forces them to say "I agree to the rules, etc etc etc."
The only pattern I can see that would help is the particular order of saying rules and agree.
If someone said rules then agree afterwords, filtering it would be fine. Or a simple filter for the exact phrase "rules agree"?
@Liger_XT5
I would recommend setting up a keyword trigger with the keywords 'rules' and 'agree'. That would trigger on both combinations.
On my server I have it set to filter out anyone that says rulesagree to other players. Some have gotten smart and been doing "type: /rules agree without the space between them" and I'd like to be able to filter out both rulesagree and rules agree.
I assume setting up a separate trigger for 'rules agree' in exact phrase would be needed instead?
@ArtBorax
Post a ticket with your config.yml, storage.yml and we can sort it out there.
All these options do not work
allowedchars: A-Za-zА-Яа-я0-9*?
allowedchars: A-Za-zА-Яа-я
allowedchars: А-Яа-я
@ArtBorax
The problem there is that the standard 'allowedchars' characters in config.yml do not include other alphabets. Before parsing chat messages, the plugin automatically removes these characters from the message.
To fix that problem, you should add the Cyrillic character ranges (in regular expressions format if necessary) into the 'allowedchars' setting in config.yml.
Сonfig file is written to the UTF8, as I create a keyword from the game, from the chat.Even one letter of the Cyrillic alphabet does not handle as the key. When no error is not any more messages.
storage.yml
do not work test test4 test6
@ArtBorax
What is happening when you try to use Cyrillic characters? Have you tried saving the config file in another encoding, such as UTF-16? (I'm not entirely sure if this would even work, but it is worth a try)
If the above options fail, post a ticket with more details and we can sort it out with you there.
does not support Cyrillic and possibly other!! What to do?
@adventuretc
It's for 1.4.7, I don't know how it works for other versions.
Giving Asyncplayerchatevent error on 1.4.6 R0.4, would it work with R0.3 or 1.4.7?
@Yndi74
Post a ticket with the appropriate trigger's config section (in storage.yml) and what the problem is and we can sort the problem out.
Thank you for the help but don't work :(
I use PEX with prefix and --name-- looking to the prefix:
04:56 DU [INFO] Player [tag] was never on this server! ( [tag] = [member] it's the prefix )
04:56 DU [INFO] [Szerver->Iko75] Itt nem lehet káromkodni/csunyán beszélni (this is the response)
P.S. The chat looks: [Event] [Tag] Iko75: XD
Multiverse + Pex + essentials chat