PluginDoctor
PluginDoctor 是一款专为 Paper 服务器设计的诊断与健康监控插件,旨在帮助服务器管理员识别模组冲突、兼容性问题、性能隐患以及整体服务器健康状况。
该插件会对已安装的插件进行自动扫描,分析服务器状态,并生成详细的报告,可用于故障排查和维护工作。
功能
插件冲突检测
PluginDoctor 会将已安装的插件与已知冲突模式数据库进行比对,并向管理员警告可能存在问题的组合。
示例包括:
- 多个经济系统提供者
- 多个权限系统
- 重叠的聊天插件
- 插件之间的功能重复
服务器健康评分
每次扫描都会根据发现的问题及其严重程度生成一个健康评分。
评分包含:
- 总体服务器评分
- 稳定性评级
- 兼容性评级
- 性能评级
- 安全性评级
性能分析
PluginDoctor 会收集运行时信息,包括:
- TPS 统计数据
- 内存使用情况
- 已加载区块数量
- 实体数量
- 玩家数量
这些信息会附加到诊断报告中,以便在故障排查时提供额外的上下文背景。
报告生成
诊断报告可以导出为多种格式:
报告会保存以供将来参考,并可分享给开发者或服务器管理员。
扫描历史
之前的扫描记录存储在 SQLite 数据库中,并在服务器重启后仍然可用。
历史扫描数据可用于比较服务器健康状况随时间的变化。
配置重载
大多数配置更改无需重启服务器即可生效。
命令
| 命令 |
描述 |
/doctor |
运行完整诊断扫描 |
/doctor quick |
运行快速扫描 |
/doctor full |
运行完整诊断扫描 |
/doctor conflicts |
运行冲突分析 |
/doctor lag |
运行性能分析 |
/doctor score |
查看当前服务器健康评分 |
/doctor report html |
生成 HTML 报告 |
/doctor report json |
生成 JSON 报告 |
/doctor report txt |
生成 TXT 报告 |
/doctor history |
查看之前的扫描历史 |
/doctor reload |
重载配置 |
/doctor gui |
打开诊断界面 |
存储
PluginDoctor 使用 SQLite 持久化存储以下数据:
兼容性
状态
PluginDoctor 目前正处于积极测试和开发阶段。
鼓励服务器管理员在开发服或暂存服上测试该插件,并报告遇到的任何问题。
PluginDoctor
PluginDoctor is a diagnostic and health-monitoring plugin for Paper servers designed to help server owners identify plugin conflicts, compatibility issues, performance concerns, and overall server health.
The plugin performs automated scans of installed plugins, analyzes server conditions, and generates detailed reports that can be used for troubleshooting and maintenance.
Features
Plugin Conflict Detection
PluginDoctor checks installed plugins against a database of known conflict patterns and warns administrators about potentially problematic combinations.
Examples include:
- Multiple economy providers
- Multiple permission systems
- Overlapping chat plugins
- Feature duplication between plugins
Server Health Scoring
Each scan generates a health score based on detected issues and severity levels.
Scores include:
- Overall server score
- Stability rating
- Compatibility rating
- Performance rating
- Security rating
Performance Analysis
PluginDoctor collects runtime information including:
- TPS statistics
- Memory usage
- Loaded chunks
- Entity counts
- Player counts
This information is attached to diagnostic reports to provide additional context during troubleshooting.
Report Generation
Diagnostic reports can be exported in multiple formats:
Reports are stored for future reference and can be shared with developers or server administrators.
Scan History
Previous scans are stored in SQLite and remain available after server restarts.
Historical scan data can be used to compare server health over time.
Configuration Reloading
Most configuration changes can be applied without restarting the server.
Commands
| Command |
Description |
/doctor |
Run a full diagnostic scan |
/doctor quick |
Run a quick scan |
/doctor full |
Run a complete diagnostic scan |
/doctor conflicts |
Run conflict analysis |
/doctor lag |
Run performance analysis |
/doctor score |
View current server health score |
/doctor report html |
Generate an HTML report |
/doctor report json |
Generate a JSON report |
/doctor report txt |
Generate a TXT report |
/doctor history |
View previous scan history |
/doctor reload |
Reload configuration |
/doctor gui |
Open the diagnostic interface |
Storage
PluginDoctor uses SQLite for persistent storage of:
- Scan history
- Generated reports
- Performance snapshots
Compatibility
Status
PluginDoctor is currently under active testing and development.
Server owners are encouraged to test the plugin on development or staging servers and report any issues they encounter.
评论 0
登录后参与评分
还没有评论,来抢沙发吧