StatsSigns - 动态世界内统计数据显示
StatsSigns 与 StatsMod 无缝集成,将服务器的详细玩家统计数据直接带入游戏世界中!这款 Fabric 模组允许服务器管理员创建高度可定制且交互式的告示牌,以显示实时排行榜、单个玩家档案以及特定统计总数。从展示顶级矿工到显示玩家的总死亡次数,StatsSigns 提供了引人入胜的可视化数据和可点击的操作,提升了玩家体验,并为服务器分析提供了强大的管理工具。
需要 StatsMod
? 主要新功能:头颅链接
- 玩家头颅集成: 将任何放置的玩家或生物头颅链接到 StatsSigns。
- 自动更新档案: 当告示牌更新时,链接的头颅会自动获取并显示告示牌上显示的玩家的档案/排名。
- 递归删除保护: 破坏已链接的 StatsSigns 也会破坏相关的头颅。反之,破坏已链接的头颅需要权限,并将其从告示牌上取消链接。
功能
动态且可定制的告示牌显示
- 实时更新: 告示牌会按照可配置的时间间隔(
settings.yml 中的 update_interval_minutes)自动刷新最新统计数据。
- 广泛的统计集成: 提取 StatsMod 跟踪的任何统计数据,包括总破坏/放置的方块、击杀的生物/玩家数量、移动距离和游戏时长。
- 可定制格式: 使用六个不同的 YAML 配置文件完全配置每种告示牌类型的外观,包括标准告示牌和悬挂式告示牌的单独文件。
- 支持标准与悬挂式告示牌: 支持普通告示牌和悬挂式告示牌,每种都有单独的可定制格式。
多样化的告示牌类型
- 排行榜告示牌: 显示任何 StatsMod 统计数据、类别或类型的玩家排名列表。
- 玩家档案告示牌: 展示第 3 行定义的特定玩家名称的各种统计数据。
- 数字排名告示牌: 将告示牌专门用于排行榜上的单一排名(例如第 3 行的
#1)。
- 跟随者告示牌: 通过方向路径字符(如
>>、^)将排行榜扩展到多个告示牌,并链接到“主”告示牌。
- 跟随者告示牌也用于自动排序数字排名告示牌。
- 链式结构支持多达 30 个跟随者深度。
- 主告示牌最多可以有 5 个直接子级/跟随者。
交互元素与占位符
- 可点击操作: 配置告示牌以执行命令(
/profile %player%)、建议命令、打开 URL、复制文本到剪贴板,或在点击时更改帮助页面。
- 悬停文本: 使用
{hover text} 语法为告示牌行添加丰富的悬停文本。
- 颜色与格式: 完全支持 Minecraft 颜色代码(
&c)和十六进制颜色(&#RRGGBB)。
- 镜像文本: 在主告示牌的第 4 行添加
+,将其更新的文本镜像到告示牌的背面。
- 广泛的占位符: 动态占位符用玩家名称、统计数值、排名和其他上下文信息填充告示牌文本。
管理与维护工具
- 简易告示牌创建命令: 在注视某个告示牌时,使用简单命令
/signstat [StatsMod] <line2> [line3] [line4] 创建或转换任意已放置的告示牌为 StatsSigns。
- 发光墨囊支持: 使用发光墨囊右键点击现有的 StatsSigns 即可切换其发光效果。
- 自动与手动更新:
- 所有告示牌的可配置自动更新。
- 使用
/statssigns signupdate 强制立即更新所有告示牌。
- 持久化存储: 所有告示牌数据使用 Gson 序列化持久保存到
data/statssigns.json。
- 重载配置 (
/statssigns reload): 即时应用对配置文件的更改。
- README 生成: 该模组自动生成一个包含所有占位符和使用方法的完整参考指南的
README.yml。
命令
/statssigns, /ss: 显示主帮助界面。
/statssigns page <number>: 浏览帮助页面。
/statssigns reload: 重新加载所有 StatsSigns 配置。
/statssigns signupdate: 强制更新所有统计告示牌。
/signstat [StatsMod] <line2> [line3] [line4]: 设置告示牌文本并更新其配置。
权限
StatsSigns 集成了 Fabric Permissions API (v0),如果未找到兼容的权限模组,则回退到操作员等级。
点击查看所有权限节点及其描述
statsmod.admin: 授予 StatsSigns 的所有权限。
statsmod.createsign: 允许创建一般的、非特定于玩家的 StatsSigns。
statsmod.create.self: 允许创建显示创建者自身统计数据的任何告示牌类型。
statsmod.create.others: 允许创建显示其他玩家统计数据的任何告示牌类型。
statsmod.create.profile: 允许为自己创建玩家档案告示牌。
statsmod.create.profiles: 允许为任何玩家创建玩家档案告示牌。
statsmod.removesign: 允许破坏/移除 StatsSigns 或链接的头颅。
statsmod.modifysign: 允许修改 StatsSigns(默认为 OP 等级 2)。
statsmod.glowsign: 允许使用发光墨囊切换 StatsSigns 的发光效果。
statsmod.signcommand: 允许通过点击告示牌执行命令(默认为 OP 等级 0)。
statsmod.reloadsign: 允许使用 /statssigns reload 命令。
statsmod.updatesign: 允许强制手动更新所有统计告示牌。
statsmod.skull: 所有与头颅相关操作的父级权限。
statsmod.skulls.player: 允许放置玩家头颅以链接到告示牌。
statsmod.skulls.mobs: 允许放置生物头颅以链接到告示牌。
StatsSigns - Dynamic In-World Statistic Displays
StatsSigns integrates seamlessly with StatsMod to bring your server's detailed player statistics directly into the game world! This Fabric mod allows server owners to create highly customizable and interactive signs that display live leaderboards, individual player profiles, and specific stat totals. From showcasing the top miners to displaying a player's total deaths, StatsSigns provides engaging visual data and clickable actions, enhancing the player experience and offering a powerful administrative tool for server analytics.
REQUIRES StatsMod
? Key New Feature: Skull Linking
- Player Head Integration: Link any placed Player or Mob Skull to a StatsSign.
- Automatic Profile Update: When the sign updates, the linked skull automatically fetches and displays the profile of the player/rank shown on the sign.
- Recursive Deletion Protection: Breaking a linked StatsSign will also break the associated skulls. Conversely, breaking a linked skull requires permission and will unlink it from the sign.
Features
Dynamic & Customizable Sign Displays
- Live Updates: Signs automatically refresh with the latest statistics at a configurable interval (
update_interval_minutes in settings.yml).
- Extensive Stat Integration: Pulls any statistic tracked by StatsMod, including total broken/placed blocks, mobs/players killed, distance traveled, and playtime.
- Customizable Formats: Fully configure the appearance of each sign type using six distinct YAML configuration files, including separate files for standard and hanging signs.
- Standard & Hanging Sign Support: Supports both regular and hanging signs, with separate customizable formats for each.
Diverse Sign Types
- Leaderboard Signs: Display ranked lists of players for any StatsMod statistic, genre, or type.
- Player Profile Signs: Showcase various statistics for a specific player name defined on Line 3.
- Digit Rank Signs: Dedicate a sign to a single rank on a leaderboard (e.g.,
#1 in Line 3).
- Follower Signs: Extend leaderboards over multiple signs, linking to a "master" sign through directional path characters (e.g.,
>>, ^).
- Follower signs are also used to automatically sequence Digit Rank signs.
- Chains support a depth of up to 30 followers.
- A master sign can have up to 5 direct children/followers.
Interactive Elements & Placeholders
- Clickable Actions: Configure signs to execute commands (
/profile %player%), suggest commands, open URLs, copy text to clipboard, or change help pages when clicked.
- Hover Text: Add rich hover-over text to sign lines using the
{hover text} syntax.
- Color & Formatting: Full support for Minecraft color codes (
&c) and hex colors (&#RRGGBB).
- Mirror Text: Add a
+ on Line 4 of the master sign to mirror its updated text to the back of the sign.
- Extensive Placeholders: Dynamic placeholders populate sign text with player names, stat values, ranks, and other contextual information.
Admin & Management Tools
- Easy Sign Creation Command: Create or convert any placed sign into a StatsSign using a simple command while looking at it:
/signstat [StatsMod] <line2> [line3] [line4].
- Glow Ink Sac Support: Toggle the glow effect on an existing StatsSign by right-clicking it with a Glow Ink Sac.
- Automated & Manual Updates:
- Configurable automatic updates for all signs.
- Force an immediate update of all signs with
/statssigns signupdate.
- Persistent Storage: All sign data is saved persistently to
data/statssigns.json using Gson serialization.
- Reload Configs (
/statssigns reload): Apply changes to configuration files instantly.
- README Generation: The mod automatically generates a
README.yml with a full reference guide for all placeholders and usage.
Commands
/statssigns, /ss: Displays the main help interface.
/statssigns page <number>: Navigates through help pages.
/statssigns reload: Reloads all StatsSigns configurations.
/statssigns signupdate: Forces an update on all stat signs.
/signstat [StatsMod] <line2> [line3] [line4]: Sets a sign's text and updates its config.
Permissions
StatsSigns integrates with the Fabric Permissions API (v0), falling back to operator levels if no compatible permissions mod is found.
Click to view all permission nodes and their descriptions
statsmod.admin: Grants all permissions for StatsSigns.
statsmod.createsign: Allows creating general, non-player-specific StatsSigns.
statsmod.create.self: Allows creating any sign type that displays the creator's own statistics.
statsmod.create.others: Allows creating any sign type that displays another player's statistics.
statsmod.create.profile: Allows creating a Player profile sign for oneself.
statsmod.create.profiles: Allows creating a Player profile sign for any player.
statsmod.removesign: Allows breaking/removing a StatsSign or a linked Skull.
statsmod.modifysign: Allows modifying a StatsSign (defaults to OP level 2).
statsmod.glowsign: Allows toggling the glow effect on a StatsSign with Glow Ink Sacs.
statsmod.signcommand: Allows executing a command by clicking a sign (defaults to OP level 0).
statsmod.reloadsign: Allows usage of the /statssigns reload command.
statsmod.updatesign: Allows forcing a manual update of all stat signs.
statsmod.skull: Parent permission for all skull-related actions.
statsmod.skulls.player: Allows placing player skulls to link to signs.
statsmod.skulls.mobs: Allows placing mob skulls to link to signs.
评论 0
登录后参与评分
还没有评论,来抢沙发吧