All projects

AskAI Plugin

An AI helper in your server chat. Short answers, in the player's own language, using free AI services.

What it does

  • Answers in a sentence or three, with no greetings or filler.
  • Replies in the language the player writes in.
  • Looks up the real crafting recipe on your server, so answers match your version, plugins included.
  • Knows live server info: who's online, how far away other players are (never their exact position), TPS, your inventory, where you last died and more.
  • Add your own rules, warps and Discord link in knowledge.txt.
  • Uses free AI services (Groq, Gemini, Z.ai, Mistral, OpenRouter) and switches to the next one when one is busy.
  • Picks a faster or smarter model depending on how hard the question is.
  • Remembers the last 2 questions per player, so follow-ups work.
  • Cooldown and daily limit per player.

Commands

CommandWhat it does
/ask <question>Ask privately. Only you see the answer.
/askall <question>Ask in front of everyone.
/askai resetClear what the AI remembers of your questions.
/askai reload | statusReload the config, or show the providers' status (admins).
/askai recipe | route | context <question>Test the recipe lookup, model choice and server data (admins).

Permissions

PermissionAllowsGiven to
askai.useUse /askeveryone
askai.publicUse /askalleveryone
askai.bypassSkip cooldown and daily limitoperators
askai.hiddenNever show this player to the AInobody
askai.admin/askai reload and statusoperators

Settings

The main options in plugins/AskAI/config.yml. Every option is explained inside the file.

providers
Paste at least one free API key, for example from console.groq.com.
limits.cooldown-seconds
Wait between questions. Default 15.
limits.daily-limit
Questions per player per day. Default 15, 0 = unlimited.
context
Choose what live server data the AI can see.
messages
Every message can be reworded, with colors.

Good to know

  • You need at least one API key before it answers. The free tiers are enough for a small server.