本库本身不执行任何操作,且随每个 Minecraft 版本重新编译,旨在为我的部分 CraftBukkit 内部插件提供稳定的 API。
是的,此插件已更新以支持 Minecraft 1.12 版本的 Spigot!
我需要哪个下载版本?
所有下载文件的版本号均对应其适用的 CraftBukkit 版本,后跟可选的修订号,最后是构建号。例如,如果您使用的是适用于 Minecraft 服务器版本 1.4.4 的 CraftBukkit,您应寻找类似这样的版本:1.4.4-b1,其中 b1 为构建号。(请务必选择与您 Minecraft 版本对应的最高构建号版本。)如果构建之间存在不兼容情况,也会有一个对应于该构建的编号,例如:1.4.5-R0.2-b1 将兼容该 Minecraft 版本的所有 1.4.5-R0.2 及更高构建版本。
功能
- 具备自我感知功能的自动更新器仅在您的 Minecraft 版本有可用更新时才会更新插件。
- 可设置为仅在 Minecraft 版本变更时自动更新、在有可用更新时自动更新,或完全不自动更新。
- 当您的 Minecraft 版本与已安装的插件版本不兼容时,会在登录时和控制台发出警告。
- 在新更新安装完成后会通知您。
- 提供了一种获取离线玩家数据的方法。
权限
- tuxtwolib.notices - 允许用户接收关于新更新和 Minecraft 版本不兼容错误的通知。
用途
面向开发者
CraftBukkit 最近的一次 提交要求任何访问原生 "net.minecraft.server" 或 "org.bukkit.craftbukkit" 类的插件,必须针对每个新的 Minecraft 版本更新修改其导入语句。
本库对这些原生类进行了抽象处理,因此每当 Minecraft 更新时,只需更新本库即可。使用本库的插件有望实现跨多个 Minecraft 版本的兼容性。
面向服务器管理员
如果您有多个利用原生 Minecraft 代码的插件,现在每次更新都需要单独更新它们。
幸运的是,如果您使用了任何依赖本库的插件,您只需更新其中一个插件即可。只需下载适用于您当前 Minecraft 版本的库版本,即可完成设置!
使用方法:
面向服务器管理员
- 下载适用于您当前 Minecraft 版本的正确插件版本。(请遵循上述说明)
- 您可以通过点击上方的“Files”选项卡查看此插件的不同版本
- 请确保记住文件下载的位置!
- 选择刚下载的文件并将其“复制”到 "/plugins" 文件夹中。
- 在 Windows 系统上,您可以使用 Ctrl+C 或右键点击然后选择“复制”。然后使用 Ctrl+V 或右键点击将其粘贴到相应的文件夹中。
- 如果您使用的是终端,应该知道如何使用 "cp" 命令或 Midnight Commander。
- 如果需要通过 FTP 操作,请确保阅读相关文档。(连接到正确的 IP,遍历目录等。)
- 按常规方式启动服务器。
- 通常这涉及运行脚本或管理面板。(这一步非常重要)
面向开发者
- 查阅本库的 JavaDocs,确认我们是否提供了您所需的挂钩(hooks)。
- 由于本库较新,可能尚未包含您需要的挂钩。
- 如果我们尚未提供,请创建支持工单以请求增强功能。我们可以为您添加!
- 如果有,只需查看 JavaDocs 并通过您的插件进行挂钩。
- 别忘了在 plugin.yml 中添加 "depend: [TuxTwoLib]"!(这将确保库在您的插件之前加载)
- 在您的插件描述中,务必告知用户他们需要在服务器上安装此库!
JavaDocs:
关于如何使用 Book API 的讨论帖:
许多类取自:
常见问题 (FAQ)
问:我在控制台中看到以下信息:INFO java.lang.NoClassDefFoundError
答:您下载了错误版本的库,或者尚未发布与您 Minecraft 版本兼容的版本。请仔细检查并确保下载了正确的版本。
This library does nothing on it's own and is re-compiled every minecraft version to provide a stable API for several of my plugins of some craftbukkit internals.
Yes, this plugin has been updated to Spigot for Minecraft version 1.12!
Which Download do I Need?
All the downloads are versioned with the craftbukkit version they are for, followed by an optional revision number, and then build number. So if you are on Craftbukkit for Minecraft server version 1.4.4, you would look for a version like this: 1.4.4-b1, with the b1 being the build number. (Always get the version with the highest build number for your version of minecraft) If an incompatibility exists in the builds, it also has a number corresponding to the build, like this: 1.4.5-R0.2-b1 would be compatible for all of 1.4.5-R0.2 builds and up for that version of minecraft.
Features
- Self aware auto updater will only update the plugin if there is an update available for your minecraft version.
- Set it to auto update only on Minecraft version changing, whenever there is an update available, or not at all.
- Will warn you upon login and in console when your version of Minecraft is incompatible with the version installed.
- Will notify you when new updates are installed.
- Provides a method for getting offline player data
Permissions
- tuxtwolib.notices - User can recieve notices about new updates and incompatible Minecraft version errors.
Purpose
For Developers
A recent commit to CraftBukkit now requires any plugins that accesses native "net.minecraft.server" or "org.bukkit.craftbukkit" classes to modify its imports for every new Minecraft version update.
This library abstracts these native classes so that whenever Minecraft updates, only this library needs to be updated. Plugins which use this library can potentially be coded to be compatible with multiple versions of Minecraft.
For Server Admins
If you have multiple plugins that utilize native Minecraft code, you will now have to update each one of them for each update.
Fortunately, if you use any plugins which utilize this library, you only need to update one plugin for them. Just grab the version of this library made for your Minecraft version and you're done!
How to Use:
For Server Admins
- Download the correct version of this plugin for your Minecraft version. (follow the instructions above)
- You can find the different versions of this plugin by clicking the "Files" tab above
- Make sure you remember where you downloaded the file to!
- Select the file you just downloaded and "copy" it to your "/plugins" folder.
- On Windows, you can use ctrl+c or right click then press "copy". Then use ctrl+v or right-click to paste it in the proper folder.
- If you are using the terminal, you should know how to use the "cp" command or Midnight Commander.
- If you need to use FTP, be sure to read the documentation. (connect to the correct IP, traverse directories, etc.)
- Run your server as you usually would.
- Typically this involves a run script or an admin panel. (this part is very important)
For Developers
- Check through this library's JavaDocs to see if we have the hooks you require.
- Because this library is new, it likely does not yet have the hooks you need.
- If we do not have them, create a Support Ticket for an enhancement. We can add it in for you!
- If we do, just examine the JavaDocs and hook into it with your plugin.
- Do not forget to add "depend: [TuxTwoLib]" to your plugin.yml! (This makes sure that the library is loaded before your plugin)
- On your plugin's description make sure you tell users that they need to have this library installed on their server!
JavaDocs:
Thread on how to use the book API:
A lot of classes taken from:
FAQ
Q. I'm getting this in my console: INFO java.lang.NoClassDefFoundError
A. You downloaded the wrong version of the library, or a version that's compatible with your version of minecraft isn't released yet. Please double check and make sure you got the right download.
下载 TuxTwoLib
下载 TuxTwoLib
下载 TuxTwoLib
下载 TuxTwoLib
下载 TuxTwoLib
下载 TuxTwoLib
下载 TuxTwoLib
下载 TuxTwoLib
下载 TuxTwoLib
下载 TuxTwoLib
支持 Minecraft 1.12 版本的 Spigot
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
一个在游戏内运行的 Minecraft 地图编辑器! 支持选区、蓝图、复制粘贴、笔刷和脚本。 可在创造模式中使用,也可在生存模式中临时使用。
插件
SkyBlock、OneBlock、Boxed、SkyGrid、AcidIsland、CaveBlock、Poseidon、StrangerRealms——以及更多!这些只是由 BentoBox 支持的基于岛屿的游戏模式之一。来自原版 ASkyBlock 的作者。
插件
一个强大的 API,用于为你的 Minecraft 服务器创建自定义进度。
评论 0
登录后参与评分
还没有评论,来抢沙发吧