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.
@ArttuJarvinen
You can fix that yourself. Use "_op" this wil force a space in front of "op", so "shop" won't trigger.
@karatetoes
I'm working on that, almost done.
You should make the keyword setup go for the words and only the words, so lets say you have:
can,i,get,op
it would only go for those words, so that it doesn't go off if someone asks:
Can i get this shop
Because right now it goes off because of the op in shOP
@woutwoot
I got it as soon as I updated to the latest NR. It happened anytime a player spoke.
Hey im curious if you would be able to make it so that when the person asks the question that it wouldnt show the question in the chat.
Thank would be awesome Thanks! -karatetoes
@Spezialeinheit @np98765
When do you get this error? Did you set up responses? I can't reproduce this problem, neither find out what causes it.
Error:
I get this error:
I'm using the most recent build of NoobResponse (1.15) and the last recommended CB build (1.2.5-R4.0).
We use it on our server, works fine! :D
IP: 108.174.57.182:25765
@joyful_dawn
I have version numbers in the file name to be able to organize the jars better. Shouldn't be that hard to delete and paste.
THX!
@Jokaru
I know, but I'm just not that experienced to find that out, so I'll have to search a solution.
@woutwoot
I think this is because plugin does not support UTF, Unicode etc. Soo ok, it would be great if you add support other encodings except ANSI. P.s. Many plugins like AutoAnnouncer or Citizens support this encodings.
@Jokaru
I don't know how to solve this problem, but I'll put it on the todo list.
@woutwoot When i save config in UTF and stop server this plugin save config in ANSI again. When i try set flag "Only read" this plugin send errors and don't reply on UTF messages. But when i add it from in game all work and reply before i stop server, but in config file all UTF messages save as "???? ????". So i think this plugin can't save messages in other encoding or reply to them.
My config with explanations:
Is it possible to change the .jar file name to just NoobResponse instead of adding the version onto it? It's kind of annoying to have to go in and delete the old jar instead of just overwriting the old version.
@Jokaru Try stopping your server, deleting your configuration file and starting the server again. If there is still a problem after that, send me your config file, so I can take a look. Also make sure that you're using the latest version.
Nope it does not work in UTF, if i adding messages ingame then in config file i see only '????? ?????", and if i add words in config then this plugin don't reply. But anyway it's a good plugin!
@antty2003
It does work. You need to separate the words with a ","
@Jokaru
I'm not sure. If you save the config file in another encoding, it could be possible.