Ersatz 是一款 Skript 插件,它允许你在 Skript 脚本中使用和创建 PlaceholderAPI 占位符,从而轻松地将动态数据集成到你的服务器文本中。
你可以使用 placeholder 效果来获取一个占位符的当前值。占位符的格式可以带或不带百分号。
on join:
set {_ping} to placeholder "player_ping" # 直接使用字符串
# 或者 set {_ping} to placeholder "%player_ping%" # 使用带百分号的格式
broadcast "你的延迟是 %{_ping}% 毫秒"你可以通过 on placeholder request 事件来定义属于你自己的占位符。你需要指定一个前缀,并处理不同的标识符。
on placeholder request with prefix "custom":
if the identifier is "hey": # 这将响应对 %custom_hey% 的请求
set the result to "你好啊 %player%!"
else if the identifier is "bye": # 这将响应对 %custom_bye% 的请求
set the result to "再见 %player%"友情链接: 网易我的世界 | 泰拉瑞亚 | ocent云计算 | 米饭Minecraft插件文档 | 友链合作
历史访问人数:2,658,544 | 历史访问人次:3,222,834
今日访问人数:3,580 | 今日访问人次:3,812
昨日访问人数:30,655 | 昨日访问人次:36,381
Copyright © 2019-2026 我的世界服务器列表站. All rights reserved.
❤ Powered by GermMC 京ICP备17023959号-6