Ersatz (Ersatz-在Skript中使用和创建PlaceholderAPI占位符的插件)
Ersatz是一个允许你在Skript中使用和创建PlaceholderAPI占位符的插件。你可以在Github上找到源码:https://github.com/Pikachu920/Ersatz。此外,你也可以参考Skript文档:https://skripthub.net/docs/?addon=Ersatz。
功能:
Ersatz允许用户在Skript中轻松使用和创建PlaceholderAPI占位符。它提供了简单易用的方式来扩展Skript的功能性。
配置:
在使用Ersatz之前,你需要安装Skript,并按照文档中的说明将Ersatz插件添加到你的Skript项目中。
用法:
1. 制作自定义占位符:
on placeholder request with prefix "custom": if the identifier is "hey": # %custom_hey% set the result to "hi there %player%!" else if the identifier is "bye": # %custom_bye% set the result to "bye bye %player%"
2. 获取占位符的值:
on join: set {_ping} to placeholder "player_ping" # placeholder "%%player_ping%%" is also valid broadcast "your ping is %{_ping}%"
权限:
Ersatz插件在Skript中使用,因此权限将取决于Skript的权限设置。
以上是对Ersatz插件的功能、配置、用法和权限的介绍。希望对你有所帮助!
收录