AutoResponse
描述:
AutoResponse 是一个易于配置的插件,用于替代反复回答相同用户问题的繁琐操作。
你可以选择添加精确触发词(exact trigger),它将扫描用户消息中的完整短语;或者添加默认触发词(default trigger),它将在每条消息中扫描关键词。
AutoResponse 配备了一系列可在回复中使用的动作,例如 %kick%、%blind% 和 %mobattack%。
每个回复可以使用多个动作,所有回复动作可以组合使用,同时仍然支持普通的文本回复。
安装:
- 下载 .jar 文件
- 将 .jar 文件放入你的 plugins 目录
- 重启服务器
命令:
•
/AutoResponse [reload/help/actions] - 查看菜单 / 重载配置
•
/Triggers [-e] - 列出触发词
•
/AddTrigger [-e] - 添加触发词
•
/DelTrigger [-e] <#> - 删除一个触发词
添加触发词:
添加触发词的格式如下:
•
/addtrigger This is my trigger > %kick% and this is a kick
现在,当用户说出一句包含触发词中所有单词的话时,就会执行回复。
在这种情况下,自动回复器会踢出该用户,并显示踢出消息 'and this is a kick'。
如果你希望自动回复器先说点什么再执行动作,可以将像 %kick% 这样的动作放在回复的末尾。
示例:
/addtrigger This is my trigger > How's this for a response? %slay%
回复动作:
• %servercmd% - 以控制台身份执行命令(不带 /)
• %playercmd% - 以玩家身份执行命令(不带 /)
• %kick% - 踢出玩家
• %ban% - 封禁玩家
• %slay% - 杀死玩家
• %shock% - 震击玩家
• %ignite% - 点燃玩家
• %mobattack% - 召唤生物攻击玩家
• %blind% #s - 使玩家失明指定时间 [分/秒]
• %confuse% #s - 使玩家混乱指定时间 [分/秒]
• %poison% #s - 使玩家中毒指定时间 [分/秒]
• %message% <message> - 给用户发送私聊消息
• %broadcast% <message> - 向服务器广播一条消息
• %player% - 始终替换为玩家的名字
配置:
PublicResponse: 是否将回复广播到服务器或仅发送给单个玩家
HideTrigger: 隐藏包含触发词的原始句子
ResponsePreface: 自定义回复的显示格式
权限:
AutoResponse.menu - 查看菜单
AutoResponse.add - 添加触发词
AutoResponse.list - 列出触发词
AutoResponse.delete - 删除触发词
AutoResponse.exempt - 免除触发回复
Thankyou for your support! :D
更新日志:
0.1.5
- 修复了当 /deltrigger <#> 超出触发词范围时的 NPE 错误
- 添加了回复短延迟(半秒)
- 更新了 ServerCmd/PlayerCmd/Ban/Kick,允许在 %action% <动作参数> 实例出现之前进行回复
0.1.4
- 为回复添加了颜色和格式支持
- 在配置中添加了 HideTrigger 选项
- 添加了 %poison% 回复动作
- 更改颜色代码以符合 Minecraft 标准颜色代码规范
0.1.3
- 修复了 ar/autoresponse 别名问题
0.1.2
- 从标准(非精确)触发词中去除标点符号
- 添加了 %shock% 动作
0.1.1
- 适配 1.3 版本
0.1
- 初始创建
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:
- Download the .jar
- Place the .jar in your plugins directory
- 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
评论 0
登录后参与评分
还没有评论,来抢沙发吧