BetterAnnounce
这是什么?
这只是一个广播插件,但它旨在尽可能少地占用服务器资源,同时具备与站内其他广播插件相媲美的功能!目前支持颜色代码、消息前缀和自定义间隔。如果您希望看到更多功能,请发表评论或提交工单,说明您需要的功能。
既然已经有很多广播插件了,为什么还要用它?
我最不喜欢其他插件的一点是,它们为了支持各种命令而包裹了大量功能,导致开发者无法察觉其插件因同时使用众多不同功能而产生的性能下降。我的插件旨在改变这一现状,它仅由一个类组成,代码约 100 行,但仍具备那些大型插件的大部分功能。
权限
要使用此功能,您必须启用 group-announce。
announcements:
default:
- 'BetterAnnouncerules!'
- 'Youcanevenuse&4COLORCODES&f!'
- 'Realmenuse&3BetterAnnounce&f!'
moderator:
- 'Youradministratorhasinstalled&3BetterAnnounce'
- 'Letthemknowthey''vemadetherightdecision!'
admin:
- 'Goodjobadmin,you''vesuccessfullyinstalled&3BetterAnnounce&f!'
- 'Youcannowchangethesemessages,aswellasthepermissionnodetheywillapplytointheconfig!'
在此示例中,所有人都会收到“default”类别的广播,但只有拥有权限节点
betterannounce.receive.moderator
和
betterannounce.receive.admin
的玩家才会收到各自类别下的广播。
配置
配置非常简单,甚至可以动态编辑,所有更改将立即生效,唯一例外的是间隔时间。间隔时间的更改需等到下次重载后才生效。
使用缩写
当使用诸如 can't、won't 和 we're 这样的缩略词时,请按照以下步骤操作。
announcements:
- 'I'm an announcement that won't work properly!'
announcements:
- 'I''manannouncementthatWILLworkproperly!'
支持的颜色代码 / 格式化代码
点击 此处 查看!
Quote from maxpowa:支持的颜色和格式化代码
| Color | Color Code | Common Name |
| █████████ | &0 | Black |
| █████████ | &1 | Dark Blue |
| █████████ | &2 | Dark Green |
| █████████ | &3 | Dark Aqua |
| █████████ | &4 | Dark Red |
| █████████ | &5 | Purple |
| █████████ | &6 | Gold |
| █████████ | &7 | Gray / Grey |
| █████████ | &8 | Dark Gray |
| █████████ | &9 | Indigo |
| █████████ | &a | Lime Green |
| █████████ | &b | Aqua |
| █████████ | &c | Pale Red |
| █████████ | &d | Pink |
| █████████ | &e | Pale Yellow |
| █████████ | &f | White |
| Format | Code | Common Name |
| Magic - makes the distorted-looking, constantly changing text | &k | Random |
| Bold | &l | Bold |
Strikethrough | &m | Strikethrough |
| Underline | &n | Underline |
| Italics | &o | Italics |
| 重置:重置所有文本效果,包括颜色(将颜色变为白色) | &r | 重置 |
警告: 如果在格式代码之后使用了颜色代码,则颜色代码之后的格式代码将失效。
MinecraftWiki 引用:&cX&nY (&c X &n Y)
会显示为:XY,而
&nX&cY (&n X &c Y)
会显示为:XY,以及
&cX&nY&rZ (&c X &n Y &r Z)
会显示为:XYZ
如果您希望每月请我喝杯咖啡,只需在我的 Patreon 页面上进行赞助即可!
BetterAnnounce
What is it?
Just another broadcast plugin, but it is meant to use as little server resources as possible, and still have capabilities to rival other broadcast plugins on here! Currently supports color codes, prefixing messages and custom intervals. If you'd like to see more features, please make a comment or file a ticket requesting the feature you are looking for.
Why, if there are already a multitude of broadcast plugins?
The thing I most dislike about other plugins is that they are so wrapped up in providing support for this and for that because of commands, they do not see the performance drops they are getting from their plugins because so many different features are being used at a time. My plugin aims to change this, as it is a one-class, 100 line plugin and still has much of the capabilites that those very plugins have.
Permissions
In order to use this function, you must enable group-announce.
announcements:
default:
- 'BetterAnnouncerules!'
- 'Youcanevenuse&4COLORCODES&f!'
- 'Realmenuse&3BetterAnnounce&f!'
moderator:
- 'Youradministratorhasinstalled&3BetterAnnounce'
- 'Letthemknowthey''vemadetherightdecision!'
admin:
- 'Goodjobadmin,you''vesuccessfullyinstalled&3BetterAnnounce&f!'
- 'Youcannowchangethesemessages,aswellasthepermissionnodetheywillapplytointheconfig!'
In this example, everyone would get the "default" announcements, but only people with the permission nodes
betterannounce.receive.moderator
and
betterannounce.receive.admin
would get the announcements under their respective categories.
Configuration
Very simple configuration, can even be edited on the fly and all changes will be immediately mirrored, with one exception - interval period. Interval changes will not take effect until the next reload.
Using contractions
When using contractions such as can't, won't and we're, follow the steps below.
announcements:
- 'I'm an announcement that won't work properly!'
announcements:
- 'I''manannouncementthatWILLworkproperly!'
Supported Color Codes / Formatting Codes
Check 'em out here!
Quote from maxpowa:Supported Color and Formatting Codes
| Color | Color Code | Common Name |
| █████████ | &0 | Black |
| █████████ | &1 | Dark Blue |
| █████████ | &2 | Dark Green |
| █████████ | &3 | Dark Aqua |
| █████████ | &4 | Dark Red |
| █████████ | &5 | Purple |
| █████████ | &6 | Gold |
| █████████ | &7 | Gray / Grey |
| █████████ | &8 | Dark Gray |
| █████████ | &9 | Indigo |
| █████████ | &a | Lime Green |
| █████████ | &b | Aqua |
| █████████ | &c | Pale Red |
| █████████ | &d | Pink |
| █████████ | &e | Pale Yellow |
| █████████ | &f | White |
| Format | Code | Common Name |
| Magic - makes the distorted-looking, constantly changing text | &k | Random |
| Bold | &l | Bold |
Strikethrough | &m | Strikethrough |
| Underline | &n | Underline |
| Italics | &o | Italics |
| Reset - Resets all text effects, including color (turns color white) | &r | Reset |
WARNING: If a color code is used after a formatting code, the formatting code will be disabled beyond the color code point.
Quote from MinecraftWiki:&cX&nY (&c X &n Y)
Would be seen as: XY, where as
&nX&cY (&n X &c Y)
Would be seen as: XY, and
&cX&nY&rZ (&c X &n Y &r Z)
Would be seen as: XYZ
If you would like to buy me a coffee each month, just throw a pledge on my Patreon page!
评论 0
登录后参与评分
还没有评论,来抢沙发吧