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
/reload command 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
/BetterReload in 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 /reload and 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.
评论 0
登录后参与评分
还没有评论,来抢沙发吧