BukkitInsider:检查事件和插件。即时执行。
版本: 1.4
这个快速、小巧且略显粗糙的插件能够获取所有的事件订阅并将其列出给你。此外,特别值得关注的是它能够计算处理特定事件的平均耗时。
一些技术细节:它部分依赖于一种被称为反射(Reflections)的黑魔法。我用一个非常类似 Bukkit 原生 PluginManager 但允许我在其他插件之前拦截所有事件并提取出毫秒级精确秒表的自定义管理器替换了 Bukkit 自带的 PluginManager。请注意,这可能会增加几纳秒的处理开销。
正如你可能知道的,黑魔法并不喜欢配合,所以如果你有其他插件也进行自己的“神圣仪式”,请留意可能产生的不良交互。
截图:
命令:
- introspect - 将有关事件钩子的信息转储到控制台。虽然你可以从聊天框调用它,但你不会看到任何输出。需要你是 OP。信息量巨大,你无法在那小小的 Minecraft 聊天窗口中看到所有内容。
BukkitInsider: inspect events and plugins. On the fly.
Version: 1.4
This quick, small and dirty plugin is able to get all event subscriptions and list them to you. Also, of particular interest is the ability to calculate average time to process a certain event.
Some technical details: it works partly because of some black magic called Reflections. I substitute Bukkit's own PluginManager with my own that is very similar to the original, but allows me to intercept all events prior to another plugins and pull out my millisecond-precise stopwatch. Please note that this may add a few nanoseconds to the bill.
As you might know, black magic doesn't like to cooperate, so if you have any other plugin that does its own sacred rituals, be aware of possible bad interaction.
Screenshot:
Commands:
- introspect - dumps information about event hooks into console. You can call it from chat though, but you won't get any output. Requires you to be an Op. Amount of imformation is just huge, you just won't see everything in that tiny Minecraft chat.
下载 BukkitInsider
下载 BukkitInsider
下载 BukkitInsider
下载 BukkitInsider
下载 BukkitInsider
下载 BukkitInsider
下载 BukkitInsider
下载 BukkitInsider
下载 BukkitInsider
支持新的 API 1.2.3 和 1.2.4
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
一个强大的 API,用于为你的 Minecraft 服务器创建自定义进度。
插件
SkyBlock、OneBlock、Boxed、SkyGrid、AcidIsland、CaveBlock、Poseidon、StrangerRealms——以及更多!这些只是由 BentoBox 支持的基于岛屿的游戏模式之一。来自原版 ASkyBlock 的作者。
评论 0
登录后参与评分
还没有评论,来抢沙发吧