4. Reload and test: ```
/ai reload
/ai Hello, can you help me with Minecraft?
```
Commands
| Command | What it does |
| -------------------- | ----------------------------------- |
| `/ai <your message>` | Chat with the AI assistant |
| `/ai help` | Show available commands |
| `/ai info` | Check if AI is working |
| `/ai config` | View current settings (admins only) |
| `/ai reload` | Reload configuration (admins only) |
⚙️ Supported AI Providers
-
OpenAI - GPT-3.5, GPT-4 (recommended for beginners)
-
Azure OpenAI - Enterprise OpenAI deployments
-
Anthropic - Claude models via direct API
-
AWS Bedrock - Claude models via AWS (enterprise)
Just set `default-provider` in config.yml to your preferred option.
️ Safety Features
-
Response length limits - Prevents chat spam
-
Rate limiting - Stops AI abuse
-
Family-friendly prompts - AI knows it's talking to Minecraft players
-
Error handling - Graceful failures, no server crashes
-
Admin controls - Full permission system
Advanced Configuration
```yaml
plugin:
default-provider: "openai"
max-response-length: 500 # Prevent long AI responses
debug: false # Enable for troubleshooting
rate-limiting:
enabled: true
requests-per-minute: 5 # Per player
cooldown-seconds: 10
messages:
system-prompt: "You are a helpful assistant in a Minecraft server. Keep responses concise and family-friendly. Help with game questions but avoid exact coordinates or major spoilers."
```