SparkAnalyzer
一款利用 AI 分析 Spark 性能分析器数据并提供可操作性能建议的 Minecraft 插件。
功能特性
AI 驱动的分析
- 支持多种 AI 提供商:OpenAI、Anthropic (Claude)、Google Gemini 和 OpenRouter
- 基于证据的诊断,附带严重程度评级(严重、高、中、低)
- 包含具体建议的结构化分析报告
易于使用
- 只需运行
/sparkanalyze <spark-url>即可分析任意 spark.lucko.me 链接中的性能档案 - 通过
/sparkanalyze upload上传原始 JSON 数据 - 使用
/sparkanalyze last重新分析上一个性能档案
Webhook 集成
- 将分析报告发送至 Discord、Slack 或自定义 Webhook
- 自动重试并采用指数退避策略
- 在连续失败后自动禁用
国际化
- 完整的 i18n 支持,提供可自定义的语言文件
- 默认包含英文 (en-US)
安全加固
- 无后门、遥测数据或隐藏的网络调用
- API 密钥永远不会被记录
- 所有网络活动均由用户触发
Spoil config.yml
# SparkAnalyzer Configuration
# Security-hardened Minecraft Paper plugin for AI-powered Spark analysis
# Language setting - uses standard locale codes
# Available: en-US (default), vi-VN, ja-JP, etc.
# If an invalid code is provided, falls back to en-US
language: en-US
# AI Provider Configuration
ai:
# Supported providers: openai, anthropic, gemini,
provider: openrouter
# Your API key - NEVER share this publicly
# This value is loaded securely and never logged
api-key: your_api_key_here
# Model to use for analysis
# OpenAI: gpt-4.1-mini, gpt-4o, gpt-4-turbo
# Anthropic: claude-3-opus, claude-3-sonnet
# Gemini: gemini-pro
# OpenRouter: Any model from openrouter.ai (e.g., openai/gpt-4o, anthropic/claude-3.5-sonnet, meta-llama/llama-3.1-70b-instruct)
model: liquid/lfm-2.5-1.2b-thinking:free
# Temperature controls randomness (0.0 = deterministic, 2.0 = creative)
# For technical analysis, lower values (0.1-0.3) are recommended
# Valid range: 0.0 to 2.0
temperature: 0.2
# Maximum tokens in the AI response
# Higher values allow for more detailed analysis
# Must be greater than 0
max-tokens: 32000
# Webhook Configuration (Optional)
webhook:
# Set to true to enable webhook notifications
enabled: false
# Webhook URL - only this URL will receive notifications
# Example: https://discord.com/api/webhooks/...
url: ""
# Format: discord, slack, or generic
format: discord
# Include full analysis report in webhook (may be truncated)
include-full-report: false
# Maximum retry attempts for failed webhooks
max-retries: 3
# Auto-disable webhook after this many consecutive failures
failure-threshold: 5
# Report Settings
reports:
# Save detailed reports to plugins/SparkAnalyzer/reports/
save-to-file: true
# Include timestamps in report filenames
include-timestamp: true
# Debug Settings (for troubleshooting only)
debug:
# Enable verbose logging (does NOT log API keys)
enabled: false

要求
- Paper 1.16.5 - 1.21.11
- Java 17+
- 已安装 Spark profiler
权限
| 权限 | 描述 |
|---|---|
sparkanalyzer.analyze |
使用分析命令 |
sparkanalyzer.reload |
重载配置 |
你是这个资源的作者?登录后可认领此资源。
相似资源
数据包事件PacketEvents
retrooper
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
前置科技
46
ExyliaLib
ExyliaServices
ExyliaPlugins 的库。
前置实用
26
Vessel
muhdfdeen
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
生物存储
13
WorldEdit
me4502
一个在游戏内运行的 Minecraft 地图编辑器! 支持选区、蓝图、复制粘贴、笔刷和脚本。 可在创造模式中使用,也可在生存模式中临时使用。
前置管理
10
LobbyAPI
Zombie_Striker_Dev
创建用户友好的菜单以前往不同的世界
管理交通
9
tkChat
tkkr
专为 Velocity 打造的自制聊天插件,功能丰富——支持跨服群组/全局/私聊消息,并集成 LibertyBans 的禁言功能。
管理社交
9
评论 0
登录后参与评分
还没有评论,来抢沙发吧