BetterReload
说实话,Bukkit 的 /reload 命令基于一个有缺陷的理念,往往导致的问题多于好处。情况甚至发展到 Spigot 和 Paper 等分支都添加了警告信息,提醒用户不要使用该命令,而是建议重启服务器。那么,如果用一个更优秀的系统完全取代 /reload 命令会怎样呢?
受 SpongePowered 项目的启发,BetterReload 将 Bukkit 试图“字面意义上”重新加载所有插件的做法,替换为向插件传递事件的方式。在安装了 BetterReload 的情况下发出 /reload 命令时,依赖于 BetterReload 的插件可以接收该事件,从而将重新加载的过程交由插件自行处理。
自 1.4.0 版本起,该插件还包含一个可配置的系统,允许通过 config.yml 文件的 external 部分支持任何插件。请在此处阅读有关此功能的更多信息 here。理想情况下,插件应支持该事件,但此功能确保了通用支持。
特性
- 重载了
/reload命令,并可通过/BetterReload访问。 - 如果未向命令传递参数,则向所有插件发送重新加载事件。
- 如果向命令传递了参数,则向特定插件发送重新加载事件。
- 自定义错误日志记录,保持控制台整洁,并尽可能记录更多信息。
- 智能 Tab 补全(仅在旧版中的
/BetterReload上生效,在现代版本中两个命令均生效)。 - Bukkit 的
/reload命令仍可通过/bukkit:reload访问。 - 能够将其他插件的重新加载命令添加到重新加载流程中。
限制
BlockCommandSenders(通常是命令方块)无法使用/reload,而必须改用/BetterReload。
文档
如需了解如何使用 BetterReload 的命令,请查看 Command wiki。
如需了解如何配置 BetterReload,请查看 Config wiki。
如需了解如何支持 ReloadEvent,请查看 ReloadEvent Support wiki。
如需了解如何支持 ReloadManager,请查看 ReloadManager Support wiki。
如需查看已知支持的插件列表,请查看 Supported Plugins wiki。
支持
如需一般性支持,请加入我的 Discord server。
如需报告项目问题,请在 Issues 标签页中提交 Issue。
BetterReload
Let's be honest, Bukkit's reload command is based on a flawed idea which often ends up causing more problems than benefits. It's to the point where forks like Spigot and Paper have added messages warning users against the use of the command, telling them to rather restart the server. So, what if the reload command was replaced entirely by a better system?
Inspired by the SpongePowered project, BetterReload swaps Bukkit's attempt at literally reloading all plugins to an event that is passed along to plugins instead. Upon issuing the /reload command with BetterReload installed, plugins that depend on BetterReload can receive an event that leaves the reloading process up to the plugins.
As of update 1.4.0, the plugin also includes a configurable system allowing any plugin to be supported via the external section of the config.yml file. Please read more about this here. Ideally plugins should support the event, but this ensures universal support.
Features
- Overloads the
/reloadcommand and accessible through/BetterReload. - Sends a reload event to all plugins if no argument is passed into the command.
- Sends a reload event to specific plugins if arguments are passed into the command.
- Custom error logging that will keep console nice and log as much information as possible.
- Smart tab completion (only on
/BetterReloadin legacy versions, on both commands in modern). - Bukkit's reload command is still accessible through
/bukkit:reload. - Ability to add other plugin reload commands to the reload process.
Limitations
BlockCommandSenders (typically command blocks) cannot use the/reloadand must rather use/BetterReload.
Documentation
For information on how to use BetterReload's commands, please check the Command wiki.
For information on how to configure BetterReload, please check the Config wiki.
For information on how to support the ReloadEvent, please check the ReloadEvent Support wiki.
For information on how to support the ReloadManager, please check the ReloadManager Support wiki.
For a list of known supported plugins, please check the Supported Plugins wiki.
Support
For general support, please join my Discord server.
For issues with the project, please open an issue in the issues tab.
下载 BetterReload
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BetterReload
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BetterReload
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BetterReload
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BetterReload
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
此版本重写了 ReloadManager,并新增了外部重载功能。
外部重载允许通过 config.yml 文件将插件名称与要执行的命令关联起来,从而支持任何插件。你可以在此处了解更多。
文档已相应更新。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
用于绘制游戏内地图或在浏览器中随探索实时进行地图绘制的实时地图。
评论 0
登录后参与评分
还没有评论,来抢沙发吧