
Its a minecraft plugin made for admins to manage their server using AI (Gemini) because it has free api keys
A powerful Minecraft plugin that integrates Google's Gemini AI to help server administrators manage their servers through natural language commands.
plugins folder/g setapikey YOUR_API_KEY_HEREplugins/GeminiMC/config.yml and add your key there/g <question> - Ask Gemini AI a question
/g setapikey <key> - Set your Gemini API key
/g autoaccept <true|false> - Toggle auto-accepting commands
/g clearhistory - Clear conversation history
/g context view - View current server context
/g context clear - Clear recent chat context
/g confirm - Confirm pending commands
/g cancel - Cancel pending commands
/g help - Show help message
/g how many players are online?
/g what time is it in the overworld?
/g how much memory is the server using?
/g give all online players a diamond
/g teleport everyone to spawn
/g change the weather to clear
/g set the time to day in all worlds
/g create a new world called "mining" with seed 12345
/g ban player xyz for griefing
/g give op to player abc
When Gemini suggests commands, you'll see:
⚠ The AI wants to execute the following commands:
• /give @a diamond 1
• /say Diamonds for everyone!
[CONFIRM] [CANCEL]
Click the buttons or type /g confirm or /g cancel.
For trusted operations, enable auto-accept:
/g autoaccept true
Commands will execute immediately without confirmation. Be careful with this mode!
To disable:
/g autoaccept false
Context Gathering: When you ask a question, the plugin gathers current server information:
AI Processing: Your question and context are sent to Gemini AI
Response Parsing: The AI's response is analyzed for command suggestions
Command Execution: If commands are suggested:
History Tracking: The conversation is saved for future context
Edit plugins/GeminiMC/config.yml:
# Your Gemini API key
api-key: ""
# Auto-accept command execution
auto-accept: false
# Maximum chat history to keep
max-history: 50
# Maximum recent chat messages to include in context
max-chat-context: 10
# Gemini API settings
gemini:
planning-model: "gemini-2.0-flash-exp"
execution-model: "gemini-2.0-flash-exp"
api-url: "https://generativelanguage.googleapis.com/v1beta/models/"
/g commandsmvn clean packagetarget/GeminiMC-1.0.0.jarmvn clean package
/g setapikey YOUR_KEY in-gameconfig.yml/op yourname/op yournameplugins/GeminiMC/histories/For issues, questions, or suggestions:
This plugin is provided as-is for server management purposes.
Current version: 1.0.0
Note: This plugin gives AI the ability to execute server commands. Always review commands before confirming unless you fully trust the AI's suggestions. Use auto-accept mode with caution.