变量符
一、介绍
您可以在其他插件(如计分板)使用 PlotSquared 的变量符,同时也可以在 PlotSquared 的某些场合使用其他插件的变量符. 例如 /plot flag set greeting Welcome %player_name%
即为在玩家进入地皮时显示其游戏名称的例子.
二、设置
要想实现此功能,您需要遵从如下步骤:
安装插件 PlaceholderAPI 或者 MVdWPlaceholderAPI.
打开
setting.yml
,并找到external-placeholders
选项,查看其值是否为true
. 如果不是,您需要修改. 修改后的效果如下:
重启服务器.
在你想要使用的地方添加变量符.
三、本插件提供的变量符列表
变量符 | 描述 |
---|---|
| 地皮名称 |
| 地皮主人 |
| 地皮白名单成员数量 |
| 通过 /plots add 添加的地皮白名单成员数量 |
| 通过 /plots add 添加的地皮白名单成员列表 |
| 通过 /plots trust 添加的地皮白名单成员数量 |
| 通过 /plots trust 添加的地皮白名单成员列表 |
| 地皮黑名单成员数量 |
| 地皮黑名单成员列表 |
| 当前地皮世界名称 |
| 显示玩家是否可以在脚下地皮建筑(即是否有该地皮的建筑权限) |
| 当前世界名称 |
| 显示玩家是否有地皮 |
| 显示玩家在对应地皮世界是否有地皮 |
| 显示玩家拥有的地皮数量 |
| 显示玩家在对应地皮世界的地皮数量 |
| 显示玩家可以拥有的地皮数量上限 |
| 显示当前地皮的 X 和 Y ID |
| 显示当前地皮的 X ID |
| 显示当前地皮的 Y ID |
| 显示当前地皮的评价 |
| 显示当前地皮的生物群系 |
| 显示当前地皮对应标标签的值 |
| 同上,但若玩家没有设置,则显示 worlds.yml 中的默认的对应标签的值 |
| 显示当前地皮的创建日期 |
最后更新于