AutoResponse
AutoResponse
Description:AutoResponse is an easily configurable alternative to answering the same user questions over and over.
One has the option to add either an exact trigger, which will scan user messages for an exact phrase, or add the default trigger which will scan each message for key words.
AutoResponse is equipped with a number of actions which you can use in your responses, such as %kick%, %blind% and %mobattack%. Numerous actions can be used per response, all response actions can be used in conjunction with each other, and the normal text response still applies.
Installation:
1. Download the .jar
2. Place the .jar in your plugins directory
3. Restart the server
Commands:
• /AutoResponse [reload/help/actions] - View menus / reload config
• /Triggers [-e] - List triggers
• /AddTrigger [-e] - Add a trigger
• /DelTrigger [-e] <#> - Delete a trigger
Adding a trigger:
To add a trigger, the format is as follow:
• /addtrigger This is my trigger > %kick% and this is a kick
Now, when a user says a sentence which contains all the words in the trigger, it will execute the response.
In this case, the auto-responder will kick the user with the kick message 'and this is a kick' Alternatively, put actions like %kick% at the end of your response if you'd like the autoresponse to say something first.
Example: /addtrigger This is my trigger > How's this for a response? %slay%
Reponse Actions:
• %servercmd% - Execute a command as console (no /)
• %playercmd% - Execute a command as player (no /)
• %kick% - Kick the player
• %ban% - Ban the player
• %slay% - Kill the player
• %shock% - Shock the player
• %ignite% - Ignite the player
• %mobattack% - Assasinate the player
• %blind% #s - Blind the player for time specified [m/s]
• %confuse% #s - Confuse the player for time specified [m/s]
• %poison% #s - Poison the player for time specified [m/s]
• %message% <message> - Send the user a private message
• %broadcast% <message> - Broadcast a message to the server
• %player% - Will always be replaced with the player's name
Configuration:
PublicResponse: Broadcast response to server or just player
HideTrigger: Hide the sentence containing the trigger
ResponsePreface: Format how you wish the response to appear
Permissions:
AutoResponse.menu - View the menu/s
AutoResponse.add - Add triggers
AutoResponse.list - List triggers
AutoResponse.delete - Delete triggers
AutoResponse.exempt - Exempt from triggering responses
Thankyou for your support! :D Change-Log:
0.1.5
- Fixed NPE if /deltrigger <#> is beyond the range of triggers
- Added short delay to response (half a second)
- Updated ServerCmd/PlayerCmd/Ban/Kick to allow a response before instance of %action% <actions parameter>
0.1.4
- Added colour & formatting to responses
- Added HideTrigger to config
- Added %poison% to response actions
- Changed colour codes to conform to minecraft colour codes standard
0.1.3
- Fixed ar/autoresponse alias
0.1.2
- Strip punctuation from standard (not exact) triggers
- Addded %shock% to actions
0.1.1
- Updated for 1.3
0.1
- Initial Creation
@DesiredPancakes
/addtrigger yourtriggerhere > %servercmd% tempban %player%
How can i make a trigger for tempban?
@levisn1
Looks like you've been messing around in the storageconfig.yml
There are more triggers than there are responses, when the trigger words are said, autoresponse cannot find the corresponding response.
Trigger 39 has been said, however your list of responses only goes up to 38.
Why i have this error?
http://pastebin.com/tucRvB30
How can I run 2 of these with separate configs? I love this plugin btw. Can you offer a build with /ar2 or something?
Could you please add support to special characters, like éáűőúöüó etc.? (I am using v.0.1.4)
@Buff1e
As yet, no.
It's an awesome plugin i just have 1 question.
- Is it possible to kick a player if he uses a certain command?
Looks like a good plugin
I appreciate you adding the ability to hide the trigger in the config. I am wondering, however, if it's possible to make something like a %hidetrigger% and %showtrigger% command for it? So one can choose specific triggers to be hidden (or to be shown if "HideTrigger" is set to true in config) . Kind of like how %message% and %broadcast% work with the "PublicResponse" config setting.
Remove the short /ar command please. Autorank needs that command and this plugin has power over that command.
@Wreyth
are you perhaps using some other chatmanager?
i have tried everything and i can't seem to get it to respond in any way at all
user is NOT opped all the words and even exact trigger said in chat even took away autoresponse.exempt in groups file for eveyone incase it was enabling for some reason
did /addtrigger where can i build? > You can build in Protected Towns or WL.
the trigger is there
but NOTHING is working at all soooooo what am i doing wrong?
Great idea! Please add support for Cyrillic.
@mafima
it works fine, you're doing it wrong.
A) the member should not be an op, as they will have the exempt permission by default
B) your response includes no actions.
/addtrigger where is pvp? > Here it is %servercmd% warp %player% pvp
that chat thing is not quite working. I wrode: /addtrigger Where is PvP? > Here it is: /warp pvp
and its not working when a member says it :/
Suggestion: Add a feature that allows you to set another Response Action to happen after the Response Action is triggered a few times by the same person.
Example:
<User> Can I have OP? AutoMessage: No.
Goes on for 5 times
<User> Can I have OP? After the 5th time User says that, an Action to ban him is triggered.
The count shouldn't accumulate over time and possibly only last for that login or a certain amount of time.
@OneTrueLegend
A) Coloured responses
Incorporating formatting codes into the responses (beyond the custom formatting defined in config) is a good idea, and to be honest I'm not sure how I've missed it.
B) Hidden trggiers
Seeing as you can make the respones private, it seems natural you should be able to hide the trigger as well, so you've the option of both the trigger and response occuring in private.
Two good suggestions, both of which I'll implement.
Also can you make it so that it is like a private message, so that when the player says the trigger word, their sentence isn't seen in the server, and neither is the response, so its like a private message :D
Can the responses be colored? if so i must be doing it wrong :( and if not, can you add it :D