服务器使用量
未统计
服务玩家数
未统计
下载量
4,278
插件详细介绍
这是一个可在 Papi eCloud 获取的简单 PlaceholderAPI 扩展,用于读取“其他玩家”而不是当前调用玩家的相关信息。
插件说明
- 该扩展用于获取另一名玩家的名称、血量、等级、位置、权限、物品、区域状态等信息。
- 将
<player>替换为你想查询其数据的玩家名。
可用占位符
%otherplayer_getname_<player>%- 自
1.1.1加入 - 不区分大小写
- 如果玩家在你的服务器上不存在,则返回
PNF
%otherplayer_displayname_<player>%%otherplayer_gamemode_<player>%%otherplayer_hasperm_<player>_perm_<permission.string>%- 自
1.1加入
%otherplayer_haspotioneffect_<player>_effect_<effect_name>%- 自
1.1加入 - 参见“说明”中的 Note*1
%otherplayer_health_<player>%%otherplayer_hunger_<player>%
%otherplayer_<plr>_in_<x1>_<y1>_<z1>_<w>_<x2>_<y2>_<z2>%- 自
2.0加入 - 参见“说明”中的 Note*6
%otherplayer_pinarea_<x1>_<y1>_<z1>_<wld>_<x2>_<y2>_<z2>%- 自
2.0加入 - 参见“说明”中的 Note*6
%otherplayer_minarea_<x1>_<y1>_<z1>_<wld>_<x2>_<y2>_<z2>%- 自
2.0加入 - 参见“说明”中的 Note*6
%otherplayer_ninarea_<x1>_<y1>_<z1>_<wld>_<x2>_<y2>_<z2>%- 自
2.0加入 - 参见“说明”中的 Note*6
%otherplayer_einarea_<x1>_<y1>_<z1>_<wld>_<x2>_<y2>_<z2>%- 自
2.0加入 - 参见“说明”中的 Note*6
%otherplayer_ip_<player>%- 自
1.1加入
%otherplayer_iteminhand_<player>%- 自
1.1加入
%otherplayer_iteminoffhand_<player>%- 自
1.1.3加入
%otherplayer_<player>_itemininvhasname_<name/material-name>%- 自
1.3.0加入 - 参见“说明”中的 Note*2
%otherplayer_<player>_itemininvhasname_<name/material-name>_amount_<amount>%- 自
1.3.0加入 - 参见“说明”中的 Note*3
%otherplayer_<player>_itemininvcontainsname_<string-to-match>%- 自
1.3.0加入 - 参见“说明”中的 Note*4
%otherplayer_<player>_itemininvgetamount_<name/material-name>%- 自
1.3.0加入 - 参见“说明”中的 Note*5
%otherplayer_level_<player>%%otherplayer_locx_<player>%%otherplayer_locy_<player>%%otherplayer_locz_<player>%
%otherplayer_oxygen_<player>%- 自
1.1加入
%otherplayer_spells_<player>%%otherplayer_uuid_<player>%%otherplayer_world_<player>%
返回值与错误信息
""- 空字符串,表示对应的值不存在
PNFPlayer Not Found
PDNEPlaceholder Does Not Exist
Error_Check_Console- 出现了意外错误,请查看控制台以获取更多信息
说明
Spells 返回内容
- 如果没有法术,返回
none - 如果有法术,返回来自 Bukkit API 的法术列表
- 格式为标题式大小写,并以空格分隔
- 示例:
Night_Vision Water_Breathing
Note*1
- 药水效果列表:
<here>
Note*2
- 返回
PNF/true/false - 可使用物品自定义名称,或完全精确匹配的材质名
material name
Note*3
- 返回
PNF/true/false - 如果指定的
amount小于1,则视为“任意数量”
Note*4
- 返回
PNF/true/false - 返回第一个包含所提供字符串的匹配项
- 例如:可用于检查玩家是否拥有任意种类的
"chestplate"
Note*5
- 返回
0或更大的数值 - 如果有多个物品堆叠与提供的名称匹配,会将它们的数量累加
Note*6
<plr>_in_area- 布尔值
true/false - 表示给定玩家是否在指定区域内
pinareaint- 统计区域中的玩家数量
minareaint- 统计区域中的怪物数量
ninareaint- 统计区域中的中立生物数量
einareaint- 统计区域中的实体数量
使用提示
- 将占位符中的
<player>替换为目标玩家名。 - 涉及区域检测的占位符需要正确填写坐标和世界名参数。
- 请保留占位符格式不变,避免修改
%、_或参数顺序。
测试支持版本
版本分布
基本信息
插件名称
PlaceholderAPI OtherPlayer Expansion
作者
LethalBunny
平台
Bukkit / Spigot
支持版本
1.10 - 1.18
点赞数
未统计
最近版本
暂无数据
-