HelpMessage v0.6
动动手指,助你一臂之力!
大家好。这是我第一个(已发布)的 Bukkit 插件。我设计这个插件是为了帮助管理员和版主应对游戏中机制和服务器特定信息(例如插件相关)方面源源不断的咨询问题。
HelpMessage 完全可自定义——你可以设置任意数量的消息,它们将以预设的时间间隔随机显示。你可以更改时间间隔、括弧“HelpMessage”的颜色、标题颜色、消息颜色以及插件本身的名称(用于游戏内用途)。
目前,只有 OP(管理员)可以更改设置/消息,但我将在下一个版本中加入权限支持。
下载
请务必查看我的另一个已发布插件 TreasureHunt,并帮助将其移至正式发布页面!详见我的签名档!
命令:
- /hm - 显示当前由插件加载的消息间隔时间和数量信息。
- /hm <messageid> - 显示由 ID 标识的消息。
OP 命令:
- /hm delay <seconds> - 设置帮助消息之间的间隔时间。
示例:/hm delay 300
- /hm add <message> - 将消息添加到消息列表中
示例:/hm add To go to spawn, type /spawn.
- /hm remove <messageid> - 从消息列表中移除该消息(消息 ID 会在消息广播时的聊天标签中显示,即 [HelpMessage 12] 表示第 12 条消息)。
示例:/hm remove 12
- /hm check <messageid> - 与 /hm <messageid> 命令相同。此命令可能会被删除。
- /hm display <messageid> - 向所有人广播特定消息。(间隔计时将从零重新开始。这不会影响顺序系统中最后一条显示的消息。)
示例:/hm display 2
- /hm bracketcolor <colorid> - 设置 [HelpMessage] 中括弧的颜色。
示例:/hm bracketcolor 2
示例:/hm bracketcolor a
- /hm titlecolor <colorid> - 设置 [HelpMessage] 中标题的颜色。
示例:/hm titlecolor 6
- /hm messagecolor <colorid> - 设置标签后消息的颜色。
- /hm title <title> - 将插件的名称设置为指定条目(不允许包含空格)。例如 IngameHelp 或 HelpingYou 等。
示例:/hm title HelperBot
- /hm sequential <true/false> - 设置插件以顺序模式(true)或随机模式(false)显示消息。
- /hm save - 将当前的消息列表和设置保存到 yml 文件中。
- /hm load - 从 yml 文件加载消息列表和设置。
计划中的功能:
已知 Bug:
更新日志:
版本 0.6
- 修复了非 OP 状态下处理消息编号时的一个小错误。
版本 0.5
- 在消息中添加了标准颜色处理功能 - &1, &2 等。祝您使用愉快 :)
- 更新至 CB 1.2.3
版本 0.4a
- Bug 修复 - 当消息列表为空时,定时器首次运行时出现的 NPE(空指针异常)
- Bug 修复 - 如果在顺序模式下运行,且在读取到最后一条消息附近/结束时移除了部分消息,导致的索引越界异常
版本 0.4
版本 0.3a
- 更新至 CB 1185。
- 对插件进行了特殊改进,使其能够在当前构建存在广播 bug 的情况下正常进行广播。
- 添加了按顺序而非随机显示消息的功能。
版本 0.3
HelpMessage v0.6
Helping people without lifting a finger!
Hello everyone. This is my first (released) plugin for bukkit. I designed this to help curb the constant stream of questions admins and mods have to deal with regarding ingame mechanics and server-specific information such as plugins.
HelpMessage is fully customizable - you can set any number of messages, and they will be displayed at random at a preset interval. You can change the interval, the color of the brackets around "HelpMessage", the color of the title, the color of the message, and the name of the plugin itself (for ingame purposes).
Currently, only ops can change settings/messages, but I will be including permissions in the next release.
Download
Be sure to check out my other released plugin, TreasureHunt, and help me get it moved to releases! See my signature!
Commands:
- /hm - displays information on the interval and number of messages currently loaded by the plugin.
- /hm <messageid> - display the message identified by the id.
Op Commands:
- /hm delay <seconds> - set the interval between help messages.
Ex: /hm delay 300
- /hm add <message> - add the message to the list of messages
Ex: /hm add To go to spawn, type /spawn.
- /hm remove <messageid> - remove the message from the list of messages (message IDs are displayed in the chat tag for the message broadcast, i.e. [HelpMessage 12] is the 12th message).
Ex: /hm remove 12
- /hm check <messageid> - same as the /hm <messageid> command. This will probably be deleted.
- /hm display <messageid> - broadcasts the specific message to everyone. (The interval will start counting from zero again. This does not affect the last displayed message in a sequential system.)
Ex: /hm display 2
- /hm bracketcolor <colorid> - sets the color of the brackets in [HelpMessage].
Ex: /hm bracketcolor 2
Ex: /hm bracketcolor a
- /hm titlecolor <colorid> - sets the color of the title in [HelpMessage].
Ex: /hm titlecolor 6
- /hm messagecolor <colorid> - sets the color of the message after the tag.
- /hm title <title> - sets the title of the plugin to the entry (no spaces allowed). I.e. IngameHelp or HelpingYou or whatever.
Ex: /hm title HelperBot
- /hm sequential <true/false> - sets the plugin to display sequentially(true) or randomly(false).
- /hm save - saves the current message list and settings to the yml file.
- /hm load - loads the message list and settings from the yml file.
Planned Features:
Known Bugs:
Changelog:
Version 0.6
- Fixed a minor error handling message numbers when you are not an OP.
Version 0.5
- Added standard color handling in messages - &1, &2, etc. Enjoy :)
- Updated to CB 1.2.3
Version 0.4a
- Bugfix - NPE on first run of the timer from having no messages in the list
- Bugfix - Index out of range exception if running sequential and having removed messages while the last message read was near/at the end of the list
Version 0.4
Version 0.3a
- Updated to CB 1185.
- Made special improvements to the plugin to allow it to broadcast despite the current build's broadcast bug.
- Added a function to display the messages sequentially instead of randomly.
Version 0.3
评论 0
登录后参与评分
还没有评论,来抢沙发吧