概述
LazyDialect 是一款专为 Minecraft Paper 服务器设计的 AI 驱动语言检测、翻译和审核插件。它帮助服务器管理员管理多语言社区,执行聊天语言策略,并为玩家提供更好的交流体验。
功能
| 功能 |
描述 |
| 语言检测 |
使用 AI 自动检测玩家聊天消息的语言。 |
| 翻译 |
使用 AI 进行消息翻译,并支持 DeepL 作为备用方案。 |
| 语言强制 |
通过可配置的操作来执行语言白名单和黑名单。 |
| 多提供商 AI |
支持 OpenRouter、OpenAI、Anthropic、Google Gemini 和 Hugging Face。 |
| 俚语验证 |
检测并验证上下文中的俚语使用情况。 |
| 分布式缓存 |
支持 Redis 和 Dragonfly,适用于多服务器网络。 |
| 聊天集成 |
集成 PlaceholderAPI、LuckPerms、LPC 和 LPCX。 |
| 玩家反馈 |
动作栏消息、视觉效果和音频反馈。 |
| PaperMC 更新器 |
使用 /lazydialect utils papermc update 下载最新的 Paper 构建版本。 |
命令
管理命令
| 命令 |
权限 |
描述 |
/lazydialect help |
lazydialect.admin |
显示可用命令。 |
/lazydialect reload |
lazydialect.admin.reload |
重新加载配置。 |
/lazydialect status |
lazydialect.admin.status |
查看插件状态。 |
/lazydialect detect <text> |
lazydialect.admin.detect |
检测文本样本的语言。 |
/lazydialect translate <lang> <text> |
lazydialect.admin.translate |
将文本翻译成指定语言。 |
/lazydialect cache clear |
lazydialect.admin.cache |
清除缓存数据。 |
/lazydialect utils papermc update |
lazydialect.admin |
下载最新的 Paper 构建版本。 |
玩家命令
| 命令 |
权限 |
描述 |
/language [code] |
lazydialect.command.language |
设置你的首选语言。 |
配置
在 plugins/LazyDialect/config.yml 中配置你的 AI 提供商。
AI 提供商
ai:
provider: "openrouter"
api_key: ""
model: ""
| 选项 |
描述 |
provider |
AI 提供商:openrouter、openai、anthropic、gemini 或 huggingface。 |
api_key |
所选提供商的 API 密钥。 |
model |
模型标识符。留空以使用提供商的默认模型。 |
[!IMPORTANT]
请保持 API 密钥私密。切勿将真实凭据提交到公共仓库。
提供商默认值
| 提供商 |
默认端点 |
默认模型 |
| OpenRouter |
https://openrouter.ai/api/v1 |
meta-llama/llama-3-8b-instruct:free |
| OpenAI |
https://api.openai.com/v1 |
gpt-4o-mini |
| Anthropic |
https://api.anthropic.com/v1 |
claude-3-haiku-20240307 |
| Google Gemini |
https://generativelanguage.googleapis.com/v1beta |
gemini-2.0-flash |
| Hugging Face |
https://api-inference.huggingface.co |
mistralai/Mistral-7B-Instruct |
随着 API、端点和模型可用性的演变,提供商默认值可能会发生变化。
要求
- Java 21 或更高版本
- Paper 1.21.11 或更高版本
- 至少一个受支持的 AI 提供商的 API 密钥,或者用于 DeepL 翻译的 DeepL API 密钥
Redis、Dragonfly 和可选的聊天集成可能需要额外的服务或插件。
构建
使用包含的 Gradle 包装器构建插件。
# 构建插件
./gradlew build
# 构建并部署到配置的服务器 plugins 目录
./gradlew deployPlugin
部署任务可能依赖于你的本地服务器配置。
许可证
LazyDialect 根据 MIT 许可证授权。完整许可证文本请参阅 LICENSE。
LazyDialect · 为 Paper 提供 AI 驱动的语言管理
Overview
LazyDialect is an AI-powered language detection, translation, and moderation plugin for Minecraft Paper servers. It helps server administrators manage multilingual communities, enforce chat language policies, and provide a better communication experience for players.
Features
| Feature |
Description |
| Language Detection |
Automatically detect the language of player chat messages using AI. |
| Translation |
Translate messages using AI, with DeepL fallback support. |
| Language Enforcement |
Enforce language whitelists and blacklists with configurable actions. |
| Multi-Provider AI |
Support for OpenRouter, OpenAI, Anthropic, Google Gemini, and Hugging Face. |
| Slang Validation |
Detect and validate slang usage in context. |
| Distributed Caching |
Redis and Dragonfly support for multi-server networks. |
| Chat Integrations |
Integrations with PlaceholderAPI, LuckPerms, LPC, and LPCX. |
| Player Feedback |
Actionbar messages, visual effects, and audio feedback. |
| PaperMC Updater |
Download the latest Paper build using /lazydialect utils papermc update. |
Commands
Administration
| Command |
Permission |
Description |
/lazydialect help |
lazydialect.admin |
Show available commands. |
/lazydialect reload |
lazydialect.admin.reload |
Reload the configuration. |
/lazydialect status |
lazydialect.admin.status |
View plugin status. |
/lazydialect detect <text> |
lazydialect.admin.detect |
Detect the language of a text sample. |
/lazydialect translate <lang> <text> |
lazydialect.admin.translate |
Translate text into the specified language. |
/lazydialect cache clear |
lazydialect.admin.cache |
Clear cached data. |
/lazydialect utils papermc update |
lazydialect.admin |
Download the latest Paper build. |
Player Commands
| Command |
Permission |
Description |
/language [code] |
lazydialect.command.language |
Set your preferred language. |
Configuration
Configure your AI provider in plugins/LazyDialect/config.yml.
AI Provider
ai:
provider: "openrouter"
api_key: ""
model: ""
| Option |
Description |
provider |
AI provider: openrouter, openai, anthropic, gemini, or huggingface. |
api_key |
API key for the selected provider. |
model |
Model identifier. Leave empty to use the provider's default model. |
[!IMPORTANT]
Keep API keys private. Never commit real credentials to a public repository.
Provider Defaults
| Provider |
Default Endpoint |
Default Model |
| OpenRouter |
https://openrouter.ai/api/v1 |
meta-llama/llama-3-8b-instruct:free |
| OpenAI |
https://api.openai.com/v1 |
gpt-4o-mini |
| Anthropic |
https://api.anthropic.com/v1 |
claude-3-haiku-20240307 |
| Google Gemini |
https://generativelanguage.googleapis.com/v1beta |
gemini-2.0-flash |
| Hugging Face |
https://api-inference.huggingface.co |
mistralai/Mistral-7B-Instruct |
Provider defaults may change as APIs, endpoints, and model availability evolve.
Requirements
- Java 21 or newer
- Paper 1.21.11 or newer
- An API key for at least one supported AI provider, or a DeepL API key for DeepL translation
Redis, Dragonfly, and optional chat integrations may require additional services or plugins.
Building
Build the plugin using the included Gradle wrapper.
# Build the plugin
./gradlew build
# Build and deploy to the configured server plugins directory
./gradlew deployPlugin
The deployment task may depend on your local server configuration.
License
LazyDialect is licensed under the MIT License. See LICENSE for the full license text.
LazyDialect · AI-powered language management for Paper
评论 0
登录后参与评分
还没有评论,来抢沙发吧