玩家峰值占位符
为你的社区提供一种有趣的方式来标记服务器的进度。Player Peak Placeholder 会追踪服务器历史上同时在线人数的最高记录,并通过 PlaceholderAPI 占位符将其暴露出来。
使用 Player Peak Placeholder,你可以在计分板、标签页列表、全息图或任何支持 PlaceholderAPI 的插件中向玩家展示你的服务器纪录。
功能
-
插件会在服务器启动时以及玩家加入时记录当前在线人数。如果当前在线人数高于之前的最高纪录,则会保存该新纪录。
-
峰值数据保存在插件的 config.yml 文件中。因此,重启服务器不会清除该纪录。
-
PlaceholderAPI 集成 —— 在支持的插件中使用 %playerpeak_max% 来查看你的服务器历史上同时在线人数的最大值。
-
无需 PlaceholderAPI 也可运行:即使未安装 PlaceholderAPI,玩家峰值追踪/保存功能依然有效。但要显示占位符内容则需要安装 PlaceholderAPI。
-
处理无效的峰值数值 —— 如果 peak-players 的值不是非负整数,插件将报错并以 0 作为峰值继续运行。
安装
- 将插件安装到你的 Paper 服务器上。
- 如果你需要使用占位符,请安装 PlaceholderAPI。
- 重启服务器。
- 将 %playerpeak_max% 添加到计分板、标签页列表、全息图或其他兼容 PlaceholderAPI 的插件中。PlayerPeakPlaceholder 本身不会创建计分板或其他显示界面;它仅提供存储好的纪录供兼容插件进行展示。
- 检查占位符是否生效:运行命令
/papi parse --null **%playerpeak_max%**。如果输出为 "0"(或在加入服务器后变为 "1"),则说明插件工作正常。
配置
纪录保存在 plugins/PlayerPeakPlaceholder/config.yml 中:
peak-players: 0
当达成新的历史最高在线人数时,该值会自动更新。你也可以手动将其设置为一个非负整数。
要求:
- Paper 1.21 或更高版本。
- PlaceholderAPI 为可选依赖项。仅在需要使用占位符时才需要安装。
联系方式
Player Peak Placeholder
Offer your community a fun way to mark the progress of your server. Player Peak Placeholder tracks your server’s all-time record for simultaneously online players and makes it available through a PlaceholderAPI placeholder.
Showcase your server record to players in a scoreboard, tab list, hologram, or any other plugin that supports PlaceholderAPI with Player Peak Placeholder.
Features
-
The plugin notes the number of players that are online at start up, and when a player joins. When this current online number is higher than the previous record, it is saved.
-
The peak is recorded in the plugin's config.yml. So a server restart will not clear the record.
-
PlaceholderAPI integration - Use %playerpeak_max% in supported plugins to see the maximum amount of players your server has had simultaneously online.
-
Works without PlaceholderAPI: Player Peak Tracking/Saving is still enabled if PlaceholderAPI is not installed. Placeholder display will require PlaceholderAPI.
-
Deals with an invalid peak value - If peak-players is anything but a non-negative whole number, the plugin will report an error and run on a peak of 0.
Installation
- Install the plugin on your Paper server.
- Install PlaceholderAPI if you want to use the placeholder.
- Restart the server.
- Add %playerpeak_max% to a scoreboard, tab list, hologram, or other PlaceholderAPI-compatible plugin. PlayerPeakPlaceholder does not create scoreboards or other displays itself; it provides the stored record for compatible plugins to show.
- Check if the placeholder is working: run "/papi parse --null %playerpeak_max%". If the output is "0" (or "1" after joining the server) the plugin is working correctly.
Configuration
The record is kept in plugins/PlayerPeakPlaceholder/config.yml:
peak-players: 0
Auto updates when any new all time peak is achieved. You can also set it manually to a non-negative whole number.
Requirements:
- Paper 1.21 or higher.
- PlaceholderAPI is an optional dependency. It is only needed for placeholders to work.
Contact
- Github:
- Mail: currently unavailable
评论 0
登录后参与评分
还没有评论,来抢沙发吧