CustomAnnouncements
为整个服务器提供大标题和聊天公告,只需一条命令即可发送。
运行 /announce,所有玩家屏幕上都会显示一个巨大的金色 ANNOUNCEMENT 标题,下方附带你的消息。同样的消息也会在同一时刻出现在聊天栏中。
功能
- 标题与聊天同步: 两者在同一刻显示,无重复消息
- 完整颜色支持: 支持所有
&0-&f 颜色代码以及 &l 加粗、&m 删除线、&n 下划线、&o 斜体、&r 重置
- 十六进制颜色: 使用
&#RRGGBB 自定义颜色
- 自由组合: 在一条消息中使用任意数量的颜色和格式
- 四个命令别名:
/announcements、/announce、/brodcast、/broadcast
- 完全可配置: 标题文本、颜色、加粗、副标题颜色、淡入/停留/淡出时间、聊天前缀和格式,以及每条消息均可配置
- 独立开关: 可以单独开启或关闭标题或聊天消息部分
- 实时重载: 编辑配置文件后运行
/customannouncements reload,无需重启服务器
- 控制台友好: 控制台也可以发送公告
- 轻量级: 基于 Paper 的 Adventure API 构建,无额外依赖
命令
| 命令 |
描述 |
/announce <message> |
向所有人发送公告 |
/announcements <message> |
同上 |
/broadcast <message> |
同上 |
/brodcast <message> |
同上(拼写错误别名) |
/customannouncements reload |
重新加载配置 |
示例
/announce &a&fWsp Guys
聊天显示:
[ANNOUNCEMENT] Wsp Guys
权限
| 权限 |
默认值 |
描述 |
customannouncements.use |
OP |
发送公告(控制台始终拥有此权限) |
customannouncements.reload |
OP |
重新加载配置 |
配置
title:
enabled: true
text: "ANNOUNCEMENT"
color: "&6"
bold: true
subtitle-color: "&f"
fade-in: 10
stay: 70
fade-out: 20
chat:
enabled: true
prefix: "&6[ANNOUNCEMENT]"
format: "{prefix} &f{message}"
messages:
no-permission: "&cYou do not have permission to use this command."
usage: "&eUsage: &f/announce <message>"
empty-message: "&cYou must enter a message to announce."
时间值以刻(ticks)为单位(20 刻 = 1 秒)。在聊天格式中,{prefix} 和 {message} 会自动填充。
安装
- 下载最新 JAR 文件。
- 将其放入服务器的
plugins 文件夹。
- 重启服务器。
- 如需修改设置,请编辑
plugins/CustomAnnouncements/config.yml。
- 运行
/customannouncements reload 应用更改。
要求
- 服务器: Paper 1.21.11
- Java: 21
由 ChanduGamingYT 制作。发现错误或有任何想法?请提交 Issue 或留下评论。
CustomAnnouncements
Big title and chat announcements for your whole server, sent with one command.
Run /announce and every player sees a large gold ANNOUNCEMENT title on their screen, with your message underneath it. The same message also appears in chat at the same moment.
Features
- Title and chat together: both show on the same tick, with no duplicate messages
- Full color support: all
&0-&f color codes and &l bold, &m strikethrough, &n underline, &o italic, &r reset
- Hex colors: use
&#RRGGBB for custom colors
- Mix and match: use as many colors and formats as you like in one message
- Four command names:
/announcements, /announce, /brodcast, /broadcast
- Fully configurable: title text, color, bold, subtitle color, fade-in/stay/fade-out timing, chat prefix and format, and every message
- Toggle each part: turn the title or the chat message on or off separately
- Live reload: edit the config and run
/customannouncements reload, with no restart needed
- Console friendly: the console can send announcements too
- Lightweight: built on Paper's Adventure API with no extra dependencies
Commands
| Command |
Description |
/announce <message> |
Send an announcement to everyone |
/announcements <message> |
Same as above |
/broadcast <message> |
Same as above |
/brodcast <message> |
Same as above (typo alias) |
/customannouncements reload |
Reload the config |
Example
/announce &a&fWsp Guys
Chat shows:
[ANNOUNCEMENT] Wsp Guys
Permissions
| Permission |
Default |
Description |
customannouncements.use |
OP |
Send announcements (the console always can) |
customannouncements.reload |
OP |
Reload the config |
Configuration
title:
enabled: true
text: "ANNOUNCEMENT"
color: "&6"
bold: true
subtitle-color: "&f"
fade-in: 10
stay: 70
fade-out: 20
chat:
enabled: true
prefix: "&6[ANNOUNCEMENT]"
format: "{prefix} &f{message}"
messages:
no-permission: "&cYou do not have permission to use this command."
usage: "&eUsage: &f/announce <message>"
empty-message: "&cYou must enter a message to announce."
Timing values are in ticks (20 ticks = 1 second). In the chat format, {prefix} and {message} are filled in automatically.
Installation
- Download the latest JAR.
- Put it in your server's
plugins folder.
- Restart the server.
- Edit
plugins/CustomAnnouncements/config.yml if you want to change anything.
- Run
/customannouncements reload to apply your changes.
Requirements
- Server: Paper 1.21.11
- Java: 21
Made by ChanduGamingYT. Found a bug or have an idea? Open an issue or leave a comment.
评论 0
登录后参与评分
还没有评论,来抢沙发吧