PumpkinAnnouncer

插件

· 作者 Pumpkings

适用于 Velocity 和 Paper 的简单插件。

0 本站下载 0 关注 更新于 5 个月前

最新 2.4 · 26.1.2 · Paper

一键开服(送7天)

? 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 键自动补全可用公告!


?️ 安装

  1. 下载 PumpkinAnnouncer-x.x.jar 文件。
  2. 将其放入 Paper 服务器的 plugins 文件夹或 Velocity 代理中。
  3. 重启你的服务器/代理。
  4. 根据需要编辑新生成的 plugins/pumpkinannouncer/config.yml 文件。
  5. 在游戏中或从控制台运行 /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."

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源