BountifulAPI 是一个为 Minecraft 服务器提供的 API 插件,它整合了发送 1.8+ 版本标题、副标题、标签页标题和动作栏消息的功能,方便开发者轻松地为玩家创建丰富的界面提示。
以下是可用的主要 API 方法,请在您的插件代码中调用。
BountifulAPI.sendTitle(player, fadeIn, stay, fadeOut, "Title", "Subtitle");player: 目标玩家。fadeIn: 标题淡入时间(刻)。stay: 标题停留时间(刻)。fadeOut: 标题淡出时间(刻)。"Title": 主标题文本。"Subtitle": 副标题文本(可为空)。BountifulAPI.sendTabTitle(player, "Header", "Footer");player: 目标玩家。"Header": 标签页列表顶部的页眉文本。"Footer": 标签页列表底部的页脚文本。BountifulAPI.sendActionBar(player, "Action Bar Message", duration);player: 目标玩家。"Action Bar Message": 要显示的动作栏消息文本。duration: 消息显示的持续时间(刻)。BountifulAPI.clearTitle(player);player: 目标玩家。此方法会立即清除该玩家屏幕上当前显示的任何标题。最新构建版本应兼容 1.8 及以上的所有 Minecraft 版本。如果遇到问题,可以尝试以下历史版本:
http://www.spigotmc.org/resources/bountifulapi.1394/download?version=4513http://www.spigotmc.org/resources/bountifulapi.1394/download?version=17988http://www.spigotmc.org/resources/bountifulapi.1394/download?version=6905http://www.spigotmc.org/resources/titleapi.1325/http://www.spigotmc.org/resources/actionbarapi.1315/http://www.spigotmc.org/resources/whatversion.1385/ (注:WhatVersion 现仅支持 1.0 版本)GitHub Issues 地址:https://github.com/ConnorLinfoot/BountifulAPI/issues
友情链接: 网易我的世界 | 泰拉瑞亚 | ocent云计算 | 米饭Minecraft插件文档 | 友链合作
历史访问人数:2,677,164 | 历史访问人次:3,246,297
今日访问人数:22,869 | 今日访问人次:27,275
昨日访问人数:30,655 | 昨日访问人次:36,381
Copyright © 2019-2026 我的世界服务器列表站. All rights reserved.
❤ Powered by GermMC 京ICP备17023959号-6