SparkAnalyzer

插件

· 作者 Simple-Dev

一个可以帮助你在 Spark 分析器中进行分析并提供一些建议的插件

0 本站下载 0 关注 更新于 9 个月前

最新 1.0.0 · 1.21.11 · Paper

一键开服(送7天)

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

img1 img2

要求

  • Paper 1.16.5 - 1.21.11
  • Java 17+
  • 已安装 Spark profiler

权限

权限 描述
sparkanalyzer.analyze 使用分析命令
sparkanalyzer.reload 重载配置

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源