BountifulAPI [1.8 - 1.14.2] | |
---|---|
|
BountifulAPI包括用于发送1.8标题、ActionBar甚至获取协议的API方法。 |
作 者 | ConnorLinfoot |
发布时间 | 2014年10月8日 |
支持核心 | Spigot | 原生版本 |
支持版本 | 1.8,1.9,1.10,1.11,1.12,1.13,1.14 |
插件详细介绍
BountifulAPI 提供了一系列 API 方法,用于在 Minecraft 1.8+ 版本中发送标题 (Title) 或动作栏消息 (ActionBar)。最新的构建版本应该兼容所有 1.8+ 版本。如果遇到问题,请及时反馈!
如果最新的构建版本不适用,可以尝试以下版本:
BountifulAPI.sendTitle(player, fadeIn, stay, fadeOut, "Title", "Subtitle");
player
: 玩家对象。fadeIn
: 标题淡入时间(单位:ticks)。stay
: 标题显示时间(单位:ticks)。fadeOut
: 标题淡出时间(单位:ticks)。"Title"
: 标题内容。"Subtitle"
: 副标题内容。BountifulAPI.sendTabTitle(player, "Header", "Footer");
player
: 玩家对象。"Header"
: Tab 列表头部内容。"Footer"
: Tab 列表底部内容。BountifulAPI.sendActionBar(player, "Action Bar Message", duration);
player
: 玩家对象。"Action Bar Message"
: 动作栏消息内容。duration
: 消息显示时间(单位:ticks)。BountifulAPI.clearTitle(player);
player
: 玩家对象。请在 GitHub 上提交 Bug、问题、建议:https://github.com/ConnorLinfoot/BountifulAPI/issues