? Pumpkin Announcer
终极自动化公告系统,现已原生支持 Paper 服务器和 Velocity 代理,且全部集成在一个智能 .jar 文件中!
PumpkinAnnouncer 允许你安排高度沉浸式的消息,完整支持聊天、ActionBars(动作条)、BossBars(Boss 条)以及自定义音效。
✨ 特性
- ? 跨平台(单文件): 无论你将其放入 Paper
plugins 文件夹还是 Velocity 代理中,都能无缝运行。插件会智能适配所在平台!
- ? 通用颜色支持: 在同一行混合使用传统代码 (
&a&l)、Bungee Hex (&#FF0000) 和现代 MiniMessage 标签 (<gradient:red:blue>)。插件会自动完美翻译所有内容。
- ? BossBars & ActionBars: 通过动画效果、临时性的 Boss 条和动作条消息配合自定义音效来吸引玩家注意。
- ? 多服务器 (Velocity): 向整个网络 (
global) 广播公告,或限制在特定服务器上(例如 ["lobby", "survival"])。
- ? 多世界 (Paper): 过滤公告,使其仅出现在特定世界的玩家视野中(例如
["world_nether"])。
- ? 数学居中: 只需在任何行的开头添加
[center] 标签,即可在 Minecraft 聊天中完美居中。它会计算像素并智能忽略颜色代码!
- ?️ 交互式聊天: 完全支持
<click> 和 <hover> 标签,以创建可点击链接和信息丰富的工具提示。
- ⌨️ 智能 Tab 补全: 输入
/pa test 时按下 TAB 键,即可即时自动补全所有已配置公告的 ID。
? 命令与权限
| 命令 |
描述 |
权限 |
/pa reload |
实时重新加载配置。 |
pumpkin.admin |
/pa list |
显示所有已加载公告 ID 的列表。 |
pumpkin.admin |
/pa test <id> |
即时预览特定公告。 |
pumpkin.admin |
提示:使用 /pa test 时,按 TAB 键自动补全可用公告!
?️ 安装
- 下载
PumpkinAnnouncer-x.x.jar 文件。
- 将其放入 Paper 服务器的
plugins 文件夹或 Velocity 代理中。
- 重启你的服务器/代理。
- 根据需要编辑新生成的
plugins/pumpkinannouncer/config.yml 文件。
- 在游戏中或从控制台运行
/pa reload 以立即应用更改。
? 文档与示例 (config.yml)
v2.2 配置系统允许你完全自定义公告的各个方面。以下是 4 种最常见的设置(欢迎复制粘贴!)。
1. 商店促销(包含 BossBar、ActionBar 和音效)
高级别公告。播放“升级”音效,在快捷栏上方显示标题,并显示一个在 15 秒内平滑减少 (deplete: true) 的 Boss 条。
store_sale:
servers: ["global"]
worlds: ["global"]
sound: "ENTITY_PLAYER_LEVELUP"
actionbar:
enabled: true
text: "<gradient:red:gold><bold>? 周末大促销 - 五折! ?</bold></gradient>"
duration-seconds: 10
bossbar:
enabled: true
text: "<gradient:red:gold><bold>周末促销进行中!</bold></gradient>"
color: "RED"
style: "SOLID"
duration-seconds: 15
deplete: true
lines:
- "[center]<gradient:red:gold><bold>? 周末促销 ?</bold></gradient>"
- ""
- "[center]<white>购买所有等级和钥匙可享 <green><bold>50% 折扣</bold></green>!"
- "[center]<white>支持服务器并获得史诗级特权。"
- ""
- "[center]<click:open_url:'https://store.yourserver.com'><hover:show_text:'<green>点击查看商店!'><yellow><bold>? store.yourserver.com ?</bold></yellow></hover></click>"
2. 投票提醒 (Velocity 服务器过滤)
如果你正在运行 Velocity,此公告将仅向 "survival" 和 "skyblock" 服务器广播。它使用了 ActionBar,但禁用了 BossBar。
voting:
servers: ["survival", "skyblock"]
worlds: ["global"]
sound: "ENTITY_EXPERIENCE_ORB_PICKUP"
actionbar:
enabled: true
text: "<gold><bold>为我们投票并赢取史诗级奖励!</bold></gold>"
duration-seconds: 8
bossbar:
enabled: false
lines:
- "[center]<color:#FFD900><bold>支持服务器</bold></color>"
- ""
- "[center]<white>你喜欢在这里玩吗?帮助我们成长!"
- "[center]<white>使用 <gold>/vote</gold> 或点击下方链接。"
- "[center]<click:open_url:'https://vote.yourserver.com'><hover:show_text:'<yellow>点击投票!'><underlined><aqua>vote.yourserver.com</aqua></underlined></hover></click>"
3. 危险警告 (Paper 世界过滤)
如果你正在运行 Paper,这非常完美。它将仅对当前位于下界维度的玩家出现。包含 Ghast 警告音效和分段式 Boss 条以营造“计时器”感觉。
nether_warning:
servers: ["global"]
worlds: ["world_nether"] #[PAPER ONLY] 仅限此世界
sound: "ENTITY_GHAST_WARN"
actionbar:
enabled: false
bossbar:
enabled: true
text: "<red><bold>⚠ 危险区域 ⚠</bold></red>"
color: "RED"
style: "SEGMENTED_6"
duration-seconds: 10
deplete: true
lines:
- "[center]<red><bold>⚠ 警告 ⚠</bold></red>"
- ""
- "[center]<white>你目前正在探索 <color:#FF5733>下界</color>!"
- "[center]<white>保护好你的物品栏并注意岩浆。"
- "[center]<gray>» <white>PvP 在此世界中 <red>启用</red>。"
4. 信息公告(简洁极简风格)
一个简单的员工招募公告。无操作栏、无 Boss 栏、无音效。只有完美居中的聊天文本。
staff_recruitment:
servers: ["global"]
worlds: ["global"]
sound: ""
actionbar:
enabled: false
bossbar:
enabled: false
lines:
- "[center]<color:#00FFD1><bold>WE ARE HIRING!</bold></color>"
- ""
- "[center]<white>Are you active and love helping others?"
- "[center]<white>We are currently looking for <color:#00FFD1>Helpers</color> and <color:#FF8C00>Moderators</color>."
- "[center]<gray>» <white>Apply here: <click:open_url:'https://apply.yourserver.com'><hover:show_text:'<gray>Good luck!'><underlined><color:#00FFD1>apply.yourserver.com</color></underlined></hover></click>"
⚙️ 通用设置
在 config.yml 的最顶部,你可以控制主计时器并完全翻译/自定义插件的所有命令响应。
settings:
cooldown-seconds: 60
messages:
help: "<gradient:gold:yellow><bold>PumpkinAnnouncer</bold></gradient>\n<gray>» <yellow>/pa reload <dark_gray>- <white>Reload settings\n<gray>» <yellow>/pa list <dark_gray>- <white>View all IDs\n<gray>» <yellow>/pa test <id> <dark_gray>- <white>Preview an announcement"
reload-success: "<green>Reload complete! Everything is running smoothly."
list-header: "<gold><bold>Currently Loaded Announcements:</bold></gold>"
id-not-found: "<red>That announcement ID doesn't exist. Please check your config."
? Pumpkin Announcer
The ultimate automated announcement system, now natively supporting both Paper servers and Velocity proxies in a single, smart .jar file!
PumpkinAnnouncer allows you to schedule highly immersive messages with full support for chat, ActionBars, BossBars, and custom sound effects.
✨ Features
- ? Cross-Platform (1 File): Works seamlessly whether you drop it into your Paper
plugins folder or your Velocity proxy. The plugin intelligently adapts to the platform!
- ? Universal Color Support: Mix and match Legacy codes (
&a&l), Bungee Hex (&#FF0000), and modern MiniMessage tags (<gradient:red:blue>) on the same line. The plugin automatically translates everything flawlessly.
- ? BossBars & ActionBars: Grab your players' attention with animated, temporary boss bars and action bar messages paired with custom sounds.
- ? Multi-Server (Velocity): Broadcast announcements to the entire network (
global) or restrict them to specific servers (e.g., ["lobby", "survival"]).
- ? Multi-World (Paper): Filter announcements so they only appear to players in specific worlds (e.g.,
["world_nether"]).
- ? Mathematical Centering: Simply add the
[center] tag at the beginning of any line to center it perfectly in the Minecraft chat. It calculates pixels and intelligently ignores color codes!
- ?️ Interactive Chat: Full support for
<click> and <hover> tags to create clickable links and informative tooltips.
- ⌨️ Smart Tab-Completion: Press
TAB while typing /pa test to instantly auto-complete the IDs of all your configured announcements.
? Commands & Permissions
| Command |
Description |
Permission |
/pa reload |
Reloads the configuration in real-time. |
pumpkin.admin |
/pa list |
Displays a list of all loaded announcement IDs. |
pumpkin.admin |
/pa test <id> |
Instantly previews a specific announcement. |
pumpkin.admin |
Tip: When using /pa test, press the TAB key to auto-complete available announcements!
?️ Installation
- Download the
PumpkinAnnouncer-x.x.jar file.
- Drop it into the
plugins folder of your Paper server or Velocity proxy.
- Restart your server/proxy.
- Edit the newly generated
plugins/pumpkinannouncer/config.yml file to your liking.
- Run
/pa reload in-game or from the console to apply your changes instantly.
? Documentation & Examples (config.yml)
The v2.2 configuration system allows you to fully customize every aspect of your announcements. Here are 4 of the most common setups (feel free to copy and paste them!).
1. Store Sale (Features BossBar, ActionBar & Sound)
A premium-tier announcement. It plays a "Level Up" sound, shows a title above the hotbar, and displays a BossBar that smoothly depletes (deplete: true) over 15 seconds.
store_sale:
servers: ["global"]
worlds: ["global"]
sound: "ENTITY_PLAYER_LEVELUP"
actionbar:
enabled: true
text: "<gradient:red:gold><bold>? HUGE WEEKEND SALE - 50% OFF! ?</bold></gradient>"
duration-seconds: 10
bossbar:
enabled: true
text: "<gradient:red:gold><bold>WEEKEND SALE IS LIVE!</bold></gradient>"
color: "RED"
style: "SOLID"
duration-seconds: 15
deplete: true
lines:
- "[center]<gradient:red:gold><bold>? WEEKEND SALE ?</bold></gradient>"
- ""
- "[center]<white>Get a <green><bold>50% DISCOUNT</bold></green> on all ranks and keys!"
- "[center]<white>Support the server and get epic perks."
- ""
- "[center]<click:open_url:'https://store.yourserver.com'><hover:show_text:'<green>Click to visit the store!'><yellow><bold>? store.yourserver.com ?</bold></yellow></hover></click>"
2. Voting Reminder (Velocity Server Filter)
If you are running Velocity, this announcement will only broadcast to the "survival" and "skyblock" servers. It utilizes an ActionBar but disables the BossBar.
voting:
servers: ["survival", "skyblock"]
worlds: ["global"]
sound: "ENTITY_EXPERIENCE_ORB_PICKUP"
actionbar:
enabled: true
text: "<gold><bold>Vote for us and earn epic rewards!</bold></gold>"
duration-seconds: 8
bossbar:
enabled: false
lines:
- "[center]<color:#FFD900><bold>SUPPORT THE SERVER</bold></color>"
- ""
- "[center]<white>Do you enjoy playing here? Help us grow!"
- "[center]<white>Use <gold>/vote</gold> or click the link below."
- "[center]<click:open_url:'https://vote.yourserver.com'><hover:show_text:'<yellow>Click to vote!'><underlined><aqua>vote.yourserver.com</aqua></underlined></hover></click>"
3. Danger Alert (Paper World Filter)
If you are running Paper, this is perfect. It will only appear to players who are currently in the Nether dimension. Features a Ghast warning sound and a segmented BossBar for a "timer" feel.
nether_warning:
servers: ["global"]
worlds: ["world_nether"] #[PAPER ONLY] Exclusive to this world
sound: "ENTITY_GHAST_WARN"
actionbar:
enabled: false
bossbar:
enabled: true
text: "<red><bold>⚠ DANGEROUS ZONE ⚠</bold></red>"
color: "RED"
style: "SEGMENTED_6"
duration-seconds: 10
deplete: true
lines:
- "[center]<red><bold>⚠ CAUTION ⚠</bold></red>"
- ""
- "[center]<white>You are currently exploring the <color:#FF5733>Nether</color>!"
- "[center]<white>Keep your inventory safe and watch out for lava."
- "[center]<gray>» <white>PvP is <red>enabled</red> in this world."
4. Informational Announcement (Clean & Minimalist)
A simple staff recruitment announcement. No ActionBars, no BossBars, no sounds. Just perfectly centered chat text.
staff_recruitment:
servers: ["global"]
worlds: ["global"]
sound: ""
actionbar:
enabled: false
bossbar:
enabled: false
lines:
- "[center]<color:#00FFD1><bold>WE ARE HIRING!</bold></color>"
- ""
- "[center]<white>Are you active and love helping others?"
- "[center]<white>We are currently looking for <color:#00FFD1>Helpers</color> and <color:#FF8C00>Moderators</color>."
- "[center]<gray>» <white>Apply here: <click:open_url:'https://apply.yourserver.com'><hover:show_text:'<gray>Good luck!'><underlined><color:#00FFD1>apply.yourserver.com</color></underlined></hover></click>"
⚙️ General Settings
At the very top of your config.yml, you can control the main timer and fully translate/customize all the plugin's command responses.
settings:
cooldown-seconds: 60
messages:
help: "<gradient:gold:yellow><bold>PumpkinAnnouncer</bold></gradient>\n<gray>» <yellow>/pa reload <dark_gray>- <white>Reload settings\n<gray>» <yellow>/pa list <dark_gray>- <white>View all IDs\n<gray>» <yellow>/pa test <id> <dark_gray>- <white>Preview an announcement"
reload-success: "<green>Reload complete! Everything is running smoothly."
list-header: "<gold><bold>Currently Loaded Announcements:</bold></gold>"
id-not-found: "<red>That announcement ID doesn't exist. Please check your config."
评论 0
登录后参与评分
还没有评论,来抢沙发吧