你的服务器是否经常随机且意外地崩溃?使用此插件来检测服务器是否已崩溃!
该插件会在服务器崩溃后 1 分钟内重启它。
我的服务器每隔几个小时就会崩溃一次,如果我和/或管理员不在线,它就会停机数小时。因此我决定编写这个插件。
V2.0+
全新的检测方式!
此版本摒弃了基于玩家交互等旧代码。经过长时间的搜索和测试,我终于找到了解决方案!这确实可行!
工作原理
当服务器崩溃时,它会停止所有插件(包括此插件的旧版本)。但在经过漫长而艰难的努力寻找方法后,我终于搞定了!当服务器崩溃时,此插件的主要部分停止工作,从而停止触发插件的外部部分;外部部分随后在 1 分钟内检测主插件部分是否仍在运行,如果未运行,则执行配置文件中设置的命令。
对于 MultiCraft 用户
请联系你的主机服务商,要求他们在服务器停止后立即重启。
示例
崩溃示例
注意:示例中的检测时间设置为 3 分钟,我已将其降低至 1 分钟。
配置文件
命令
/cr :告知发送者插件是否正在运行。
兼容性
V2.0 兼容所有 Minecraft 版本(已测试回溯至 1.2.5)。
指标统计
Crash Restarter V2.0 使用 Hidendra 的插件指标系统。
指标记录并发送以下内容:
- 服务器的 Java 版本
- 操作系统版本/名称及架构
- 服务器是离线模式还是在线模式
- CPU 核心数量
- 服务器位置
- 游戏版本
- 服务器软件
如果你希望禁用指标统计,可以通过选择退出来实现,你可以在 /plugins/PluginMetrics/ 下的 Metrics 配置文件中进行操作。

待办事项
告诉我,我会看看我能做些什么。
查看我的其他插件以获取精彩功能!
Does your server crash randomly and unexpectedly? Use this plugin to Detect if your server has Crashed!
This plugin will restart your server within 1 minute of it crashing.
My server would crash every couple of hours, and if I/an Admin wasn't online it would stay down for multiple hours. So i decide to write this plugin.
V2.0+
NEW WAY OF DETECTION!
This version gets rid of the old code of it being based on player interactions etc. I've been searching and testing for a very long time I've finally figured it out! It can be done!
How it now works
When your server crashes, it stops all plugins(even the old version of this plugin). But after a long hard struggle to find a way, I have finally figured it out! When the server crashes the main part of this plugin stops working, which stops triggering the external part of the plugin, which in turn detects within 1 minute whether the main part of the plugin is working, and if it doesn't it runs the command set in config.
For MultiCraft users
Ask your hosting company for your server to restart as soon as it stops.
Example
Example crash
Note: Example was done with a 3 minute detection, I lowered it to 1 minute.
Config
Commands
/cr : Tells the sender if the plugin is running.
Compatability
V2.0 is compatible with all minecraft versions(tested back to 1.2.5).
Metrics
Crash Restarter V2.0 uses Hidendra's plugin metrics system.
Metrics record and sends:
- The server's Java version
- The OS version/name and architecture
- Whether the server is in offline or online mode
- The amount of CPU cores
- Server Location
- Game Version
- Server Software
If you wish to disable Metrics, you can do so by opt-ing out, which you can do in the Metrics config file under /plugins/PluginMetrics/

To Do
Tell me, and ill see what i can do.
Check out my other plugins for great features!
下载 Crash Restarter
下载 Crash Restarter
下载 Crash Restarter
下载 Crash Restarter
下载 Crash Restarter
下载 Crash Restarter
下载 Crash Restarter
下载 Crash Restarter
下载 Crash Restarter
下载 Crash Restarter
修复了可能导致指标崩溃的问题。
添加了调试/崩溃输出文件,位于 /plugins/CrashRestarter/log.txt
请提供建议。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
ExyliaPlugins 的库。
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
一个在游戏内运行的 Minecraft 地图编辑器! 支持选区、蓝图、复制粘贴、笔刷和脚本。 可在创造模式中使用,也可在生存模式中临时使用。
插件
创建用户友好的菜单以前往不同的世界
插件
专为 Velocity 打造的自制聊天插件,功能丰富——支持跨服群组/全局/私聊消息,并集成 LibertyBans 的禁言功能。
插件
一个高度兼容、功能完善且稳定的 TPA 模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧