Skip to content

PlaceholderAPI 占位符

EmakiStrengthen 提供了一组 PlaceholderAPI 外部占位符,可在计分板、HUD 等任何支持 PAPI 的场景中使用。

前置条件

服务器需安装 PlaceholderAPI 插件。EmakiStrengthen 会在启动时自动检测并注册,无需手动配置。

标识符

emakistrengthen

主手物品强化状态

所有占位符读取玩家当前主手持有物品的强化数据。如果主手物品没有强化数据,数值类返回 0,布尔类返回 false,字符串类返回空。

占位符说明示例返回值
%emakistrengthen_mainhand_star%当前星级7
%emakistrengthen_mainhand_temper%锻印等级3
%emakistrengthen_mainhand_recipe%强化配方 IDweapon_physical
%emakistrengthen_mainhand_eligible%是否可强化true / false
%emakistrengthen_mainhand_success_count%历史强化成功次数15
%emakistrengthen_mainhand_failure_count%历史强化失败次数8

示例

%emakistrengthen_mainhand_star%             → 7
%emakistrengthen_mainhand_temper%           → 3
%emakistrengthen_mainhand_recipe%           → weapon_physical
%emakistrengthen_mainhand_eligible%         → true
%emakistrengthen_mainhand_success_count%    → 15
%emakistrengthen_mainhand_failure_count%    → 8

使用场景

这些占位符特别适合在 HUD 插件中显示玩家当前武器的强化等级,或在聊天格式中展示装备星级。

Released under the GPL-3.0 License