zMAnnounce
为你的 Velocity 网络提供快速、安全且美观的公告。
发送全局或指定服务器的警报,运行 Bossbar 倒计时,并使用传统颜色、HEX 或 MiniMessage 自定义样式——完全不影响代理的性能。
预览
为什么选择 zMAnnounce?
|
|
| ✅ 全局或定向发送 |
发送到所有服务器(all)或仅发送到特定的某个服务器。 |
| ✅ Bossbar 倒计时 |
实时 %time% 倒计时,支持开始/结束音效和结束标题。 |
| ✅ 完整的颜色控制 |
配置中支持传统颜色(&6, &l)、HEX(&#FFC930)和 MiniMessage。 |
| ✅ 设计上的安全性 |
玩家输入的长度受限,去除了控制字符,并且 MiniMessage 标签会被转义——任何人都无法注入点击/悬停/字体事件。 |
| ✅ 为大网络构建 |
异步投递、单个共享的 Bossbar 计时器以及有界颜色缓存。无延迟尖峰,无内存泄漏。 |
| ✅ 永不丢失你的配置 |
如果重载失败,上一次有效的配置仍将保持活跃。 |
命令
| 命令 |
描述 |
权限 |
/zmannounce alert <message> <server|all> |
发送公告 |
zmannounce.use |
/zmannounce bossbar <message> <time> <server|all> |
启动 Bossbar 倒计时 |
zmannounce.bossbar |
/zmannounce reload |
重载 config.yml |
zmannounce.reload |
别名: /announce.
持续时间格式: 10s, 15m, 1h ——受 security.max-bossbar-duration-minutes 限制。
快速示例
# 向代理上的所有服务器发送警报
/zmannounce alert "Server restart in 5 minutes!" all
# 仅向大厅服务器发送警报
/zmannounce alert "Welcome to the lobby!" lobby
# 为所有人启动一个 5 分钟的 Bossbar 倒计时
/zmannounce bossbar "Event starting soon!" 5m all
# 无需重启 Velocity 即可重载配置
/zmannounce reload
玩家将收到配置好的聊天消息、标题、副标题和音效。
配置
所有内容均在 plugins/zMAnnounce/config.yml 中进行配置:
announce-template:
sound: "BLOCK_NOTE_BLOCK_PLING"
title:
enabled: true
fadein: 10
stay: 70
fadeout: 20
title: "&#FFC930&lANNOUNCEMENT"
subtitle: "&fCheck the chat!"
还可配置:Bossbar 颜色和叠加层、开始/结束音效、结束标题、消息长度限制、每个玩家的冷却时间、最大活跃 Bossbar 数量、颜色缓存大小、更新通知——以及每一个插件消息。
要求
内置安全性
|
|
| ✅ |
玩家提供的文本已转义——无法注入 MiniMessage 标签。 |
| ✅ |
使用无效的 YAML 进行重载绝不会替换你正在运行的配置。 |
| ✅ |
冷却时间是原子操作,并在断开连接时清理。 |
| ✅ |
在切换服务器、移除目标、替换或代理关闭时释放 Bossbar。 |
| ✅ |
缓存的值是有界的,并在关闭时清除。 |
| ❌ |
不收集任何个人数据、IP 地址、服务器名称或玩家名称。 |
链接
bStats
zMAnnounce
Fast, safe and beautiful announcements for your Velocity network.
Send global or per-server alerts, run bossbar countdowns, and style everything with legacy colors, HEX or MiniMessage — all without touching your proxy's performance.
Preview
Why zMAnnounce?
|
|
| ✅ Global or targeted |
Send to every server (all) or only to one specific server. |
| ✅ Bossbar countdowns |
Live %time% countdown with start/end sounds and end titles. |
| ✅ Full color control |
Legacy (&6, &l), HEX (&#FFC930) and MiniMessage in the config. |
| ✅ Safe by design |
Player input is length-limited, stripped of control characters and MiniMessage tags are escaped — nobody can inject click/hover/font events. |
| ✅ Built for big networks |
Async delivery, a single shared bossbar ticker and a bounded color cache. No lag spikes, no memory leaks. |
| ✅ Never loses your config |
If a reload fails, the last working configuration stays active. |
Commands
| Command |
Description |
Permission |
/zmannounce alert <message> <server|all> |
Send an announcement |
zmannounce.use |
/zmannounce bossbar <message> <time> <server|all> |
Start a bossbar countdown |
zmannounce.bossbar |
/zmannounce reload |
Reload config.yml |
zmannounce.reload |
Alias: /announce.
Durations: 10s, 15m, 1h — capped by security.max-bossbar-duration-minutes.
Quick examples
# Alert every server on the proxy
/zmannounce alert "Server restart in 5 minutes!" all
# Alert only the lobby server
/zmannounce alert "Welcome to the lobby!" lobby
# Start a 5-minute bossbar countdown for everyone
/zmannounce bossbar "Event starting soon!" 5m all
# Reload the config without restarting Velocity
/zmannounce reload
Players receive the configured chat message, title, subtitle and sound.
Configuration
Everything is configurable in plugins/zMAnnounce/config.yml:
announce-template:
sound: "BLOCK_NOTE_BLOCK_PLING"
title:
enabled: true
fadein: 10
stay: 70
fadeout: 20
title: "&#FFC930&lANNOUNCEMENT"
subtitle: "&fCheck the chat!"
Also configurable: bossbar colors and overlays, start/end sounds, end titles, message length limits, per-player cooldowns, max active bossbars, color cache size, update notifications — and every single plugin message.
Requirements
Built-in safety
|
|
| ✅ |
Player-supplied text is escaped — it cannot inject MiniMessage tags. |
| ✅ |
Reload with an invalid YAML never replaces your running config. |
| ✅ |
Cooldowns are atomic and cleaned up on disconnect. |
| ✅ |
Bossbars are released on server change, target removal, replacement or proxy shutdown. |
| ✅ |
Cached values are bounded and cleared on shutdown. |
| ❌ |
No personal data, no IPs, no server names, no player names collected. |
Links
- Source & issues: GitHub
- Support: Discord
bStats
评论 0
登录后参与评分
还没有评论,来抢沙发吧