Skip to content

PlaceholderAPI 占位符

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

前置条件

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

标识符

emakiattribute

属性值

占位符说明示例返回值
%emakiattribute_<attribute_id>%玩家某属性的当前计算值125.5
%emakiattribute_power%玩家的综合战力值3680

<attribute_id> 对应属性定义文件中的 id 字段,例如 physical_attackdefense 等。

示例

%emakiattribute_physical_attack%    → 125.5
%emakiattribute_defense%            → 80
%emakiattribute_power%              → 3680

资源值

资源占位符格式为 %emakiattribute_resource_<resource_id>_<field>%

占位符说明示例返回值
%emakiattribute_resource_<id>_current%资源当前值85.5
%emakiattribute_resource_<id>_max%资源当前上限(含加成)100
%emakiattribute_resource_<id>_default%资源默认上限(不含加成)80
%emakiattribute_resource_<id>_bonus%资源加成上限20
%emakiattribute_resource_<id>_percent%资源百分比(0~100)85.5

示例

%emakiattribute_resource_health_current%    → 85.5
%emakiattribute_resource_health_max%        → 100
%emakiattribute_resource_health_percent%    → 85.5
%emakiattribute_resource_mana_current%      → 50
%emakiattribute_resource_mana_default%      → 80

Released under the GPL-3.0 License