你是否曾需要自动向聊天频道广播消息,却发现那些真正能实现此功能的插件会在聊天中刷屏显示它们的名称、自定义程度不足或完全不支持全彩?那么这款插件就是为你准备的!
本插件使用非常简单,只需简单的拖放操作。该插件会在 /plugins/ 目录下生成一个名为 AutoBroadcaster 的文件夹,其中包含 messages.txt 和 config.yml。messages.txt 是一个空白文本文件,每一行代表一条要广播的消息。这是一个全局消息文件,意味着无论你身处哪个世界,都会收到这些消息。config.yml 是主配置文件,你可以在其中自定义播报者名称、间隔时间等设置。它还包含一些更高级的设置,例如按什么内容分割消息文件(默认为换行符)、在插件广播消息前所需的最小玩家数量,以及是否输出到控制台。
配置足够灵活,可以满足你的各种需求。甚至可以实现针对特定世界的消息、间隔时间、公告、播报者名称,以及消息文件的解析方式等所有细节的自定义。
此外,本插件还支持将 BukkitSettings 插件作为附加组件使用!如果你已安装它,玩家可以选择关闭接收消息的功能!
通过 Project Ares / OverCast Network 的 Anxuiz 开发的 BukkitSettings,你可以开启或关闭公告功能。在游戏中,输入 /settings 即可查看所有设置列表。如果你同时使用了我的插件和 Anxuiz 的插件,公告应该会弹出。输入 /toggle Announcements 或 /toggle a 来启用或禁用它。若要了解更多关于公告开关的信息,请输入 /setting Announcements
在此获取 BukkitSettings:
v1.1.0 及以上版本的示例文件:
示例全局消息文件 (messages.txt):
This is a white broadcast, which will be the first one broadcasted!
&4This broadcast is red, and <his is bold + red!
These messages will be received to every player in any world!
若要仅为目标为名为 Test 的世界中的玩家创建消息,只需在 /plugins/AutoBroadcasterPlus/ 目录下创建另一个名为 messages-Test.txt 的文件即可。这里的消息将仅被处于名为 Test 的世界中的玩家接收!
示例 config.yml
broadcaster:
#Should the plugin debug?
debugging: true
<span>global</span><span>:</span>
<span>#Who will be the announcer? Ex: [AutoBroadcaster]: Message</span>
<span>announcerName</span><span>:</span> <span>'[&4Global&f]:</span><span>'</span>
<span>#Interval, in seconds</span>
<span>interval</span><span>:</span> <span>15</span>
<span>#Should messages be sent to console as well?</span>
<span>broadcast-to-console</span><span>:</span> <span>true</span>
<span>#Minimum number of players before any message is broadcasted (0 to broadcast even if no one is online)</span>
<span>min-players</span><span>:</span> <span>1</span>
<span>#What the messages file should be split by (Don't modify this unless you know what you're doing!)</span>
<span>delimeter</span><span>:</span> <span>'\n'</span>
<span># To customize settings for a world, say a world named Test, you can simply create a new section. Any settings you don't</span>
<span># fill out are defaulted to the global settings. Example:</span>
<span>Test</span><span>:</span>
<span>announcerName</span><span>:</span> <span>'[&1Test&f]:</span><span>'</span>
<span>## If you wanted the rest to be like global, you could just delete them or leave them commented :)</span>
<span>#interval: 60</span>
<span>#broadcast-to-console: false</span>
<span>#min-players: 1</span>
<span>#delimeter: '\n'</span>
阅读中间的注释以了解如何为特定世界的消息自定义设置。
v1.0.0 及以下版本的示例文件:
示例 messages.txt:
This is a white broadcast, which will be the first one broadcasted!
&4This broadcast is red, and <his is bold + red!
示例 config.yml(实际文件包含所有颜色代码列表,并直接链接到颜色 wiki):
#Who will be the announcer? Ex: [AutoBroadcaster]: Message
announcerName: '[&4AutoBroadcaster&f]:'
#间隔时间,单位为秒
interval: 60

本插件使用 Metrics
您可以禁用 Metrics 以停止发送信息。前往 /plugins/metrics/ 并点击 config。将 opt-out 设置为 true。
仅在您介意数据追踪时执行此操作,它可以帮助我了解有多少人使用该插件、他们使用的服务器软件类型以及有多少服务器在使用!Metrics 还能通过告知我你们使用的 Java 和 cb 版本等信息,协助我开发该插件。
开源项目
本插件已开源,如果您使用了其中的代码,请注明出处。
支持作者!
如果您喜欢我的插件和工作,可以进行捐赠。所有捐赠均受欢迎,并将用于开发目的。
Have you ever needed to auto broadcast messages to chat, and notice that the few plugins that actually are able to do this spam the chat with their name, not fully customizable, or no full color support? This plugin is for you then!
This plugin is very simple to use, simple drag and drop. This plugin will generate a folder in /plugins/ called AutoBroadcaster, containing a messages.txt and a config.yml. The messages.txt is a blank text file, where each line is a broadcasted message. This file is a Global message file, which simply means you will receive the messages no matter what world you are in. The config.yml is the main file, in it you can customize things like the announcer name, and the interval. It also has some more advanced settings, such as what to split the message file by (default is new line), the minimum number of players before the plugin broadcasts messages, and whether or not to print to console.
The config is customizable enough to do whatever you want. Even per-world messages, intervals, announcements, announcer names, everything right down to how the message file should be parsed.
This plugin also allows to use BukkitSettings plugin as an add-on! If you have it installed, players can choose to toggle out of receiving messages!
Announcements are toggleable on or off using BukkitSettings by Anxuiz from Project Ares / OverCast Network.
In game, you will be able to do /settings to see a list of all settings. If you're using my plugin along with Anxuiz's plugin, then Announcements should pop up. Do /toggle Announcements or /toggle a to enable or disable it. To learn more about the announcement toggle, do /setting Announcements
Get BukkitSettings here:
Example Files for v1.1.0 and above!:
Example global messages file (messages.txt):
This is a white broadcast, which will be the first one broadcasted!
&4This broadcast is red, and <his is bold + red!
These messages will be received to every player in any world!
To create messages only for players in a world called Test, simply create another file
in /plugins/AutoBroadcasterPlus/ called messages-Test.txt. Messages in here will only
be received by those in a world called Test!
Example config.yml
broadcaster:
#Should the plugin debug?
debugging: true
<span>global</span><span>:</span>
<span>#Who will be the announcer? Ex: [AutoBroadcaster]: Message</span>
<span>announcerName</span><span>:</span> <span>'[&4Global&f]:</span><span>'</span>
<span>#Interval, in seconds</span>
<span>interval</span><span>:</span> <span>15</span>
<span>#Should messages be sent to console as well?</span>
<span>broadcast-to-console</span><span>:</span> <span>true</span>
<span>#Minimum number of players before any message is broadcasted (0 to broadcast even if no one is online)</span>
<span>min-players</span><span>:</span> <span>1</span>
<span>#What the messages file should be split by (Don't modify this unless you know what you're doing!)</span>
<span>delimeter</span><span>:</span> <span>'\n'</span>
<span># To customize settings for a world, say a world named Test, you can simply create a new section. Any settings you don't</span>
<span># fill out are defaulted to the global settings. Example:</span>
<span>Test</span><span>:</span>
<span>announcerName</span><span>:</span> <span>'[&1Test&f]:</span><span>'</span>
<span>## If you wanted the rest to be like global, you could just delete them or leave them commented :)</span>
<span>#interval: 60</span>
<span>#broadcast-to-console: false</span>
<span>#min-players: 1</span>
<span>#delimeter: '\n'</span>
Read the comments in the middle to see how to customize the settings for messages in a specific world.
Example Files for v1.0.0 and below!:
Example messages.txt:
This is a white broadcast, which will be the first one broadcasted!
&4This broadcast is red, and <his is bold + red!
Example config.yml (The actual file has a list of all the color codes, and it has a direct link to the wiki on colors!):
#Who will be the announcer? Ex: [AutoBroadcaster]: Message
announcerName: '[&4AutoBroadcaster&f]:'
#Interval, in seconds
interval: 60

This plugin uses Metrics
Metrics can be disabled to stop sending info out, go to /plugins/metrics/ and click config. Turn opt-out to true.
Please only do this if you're uncomfortable about data tracking, it helps me see how many people use it, what server software they use, and how many servers use it! Metrics also assists in developing the plugin by telling me info like what java and cb you guys use.
Open sourced
This plugin is open sourced, please provide credit to me for any code you use.
Support Me!
If you like my plugin and my work, you can donate. All donations are welcome, and will be used for developing purposes.
评论 0
登录后参与评分
还没有评论,来抢沙发吧