Overview
#Bots talk in three ways:
- Line pools (
chat.lines,chat.lines-<code>): hand-written idle chatter. Free, instant and perfect in any language. See Configuration. - Social replies (
social): bots answer/msgand teleport requests and react to joins, deaths and advancements. They work without AI using canned lines. - AI chat (
ai): when enabled, bots answer real players with a language model, in their own personality and the player's language.
AI chat is optional and stays off until you set it up.
Setting up AI
#The quickest way is /mirage ai setup in game. The wizard offers:
| Option | Notes |
|---|---|
| Google Gemini (recommended) | Free, no install, good in every language. Needs a free Google account. |
| Groq | Free, very fast. Needs a free Groq account. |
| On this server (Ollama) | No account and no key. Runs on your machine and needs about 4 GB of free memory. |
| I already have a key | Paste any Gemini, Groq, OpenAI, Claude or OpenRouter key; the provider is detected. |
Keys pasted into the wizard are not sent to chat. From the console you can also use /mirage ai key <api-key>, which detects the provider from the key format (gsk_ Groq, sk-or- OpenRouter, sk-ant- Claude, AQ. or AIza Gemini, otherwise OpenAI), verifies it with one request and enables AI.
Local AI with Ollama
#/mirage ai setup ollama runs the whole chain: it finds a running daemon, otherwise an installed ollama binary, otherwise downloads the official standalone build into plugins/MirageRoster/ollama (no admin rights, nothing written system-wide), starts it on a free loopback port, pulls a model, sends one real test message and only then saves the settings and enables AI. Nothing is saved if the test fails. By default it shows the download URL and size and waits for a second command before installing.
ai.auto-setup: true does the same on the next server start without any command. It is off by default because it downloads gigabytes and runs a downloaded binary.
Providers
#ai.provider | Notes |
|---|---|
openai | Any OpenAI-compatible /v1/chat/completions endpoint. |
groq, openrouter, deepseek, together | Shorthands that fill in the endpoint; OpenAI-compatible. |
gemini | Google Gemini, with its own wire format. Needs a Google AI Studio key. |
claude | Anthropic Claude Messages API. Needs a paid API key. |
ollama | Local daemon, no key. |
Any other id is treated as an OpenAI-compatible endpoint; set ai.endpoint for it.
Core AI settings
#| Key | Default | Description |
|---|---|---|
ai.enabled | false | Master switch. Off: bots use the line pools. |
ai.debug | false | Extra console logging for failed requests and dropped lines. |
ai.limits.requests-per-minute | 40 | Model requests the whole server may make per minute (add-on requests included). 0 = no limit. |
ai.limits.per-player-per-minute | 6 | Requests caused by one player per minute. |
ai.replies.block-links | true | Drop replies with a link, domain or IP, so nobody can make a bot advertise. |
ai.replies.allowed-links | [] | Links a reply may still carry, such as "discord.gg/yourserver". |
ai.replies.apply-blacklist | true | Also drop replies containing a word from ai.blacklist.keywords. |
ai.provider | "openai" | See the table above. |
ai.endpoint | "" | Override the endpoint. Empty = filled in from the provider. |
ai.api-keys | [] | Pool of API keys, rotated per request. A key returning 429, 401 or 403 is shelved for a cooldown. Empty for Ollama. |
ai.model | "gpt-4o-mini" | Model id as your provider names it. |
ai.temperature / ai.top-p | 0.85 / 0.95 | Sampling controls. |
ai.max-tokens | 120 | Output token cap. Raise it if replies arrive half-finished. |
ai.thinking | low | How hard Gemini 2.5 Flash and Gemini 3 think: low, medium, high. Also /mirage ai thinking. |
ai.thinking-tokens | 1024 / 3072 / 8192 | Thinking budget per level (low, medium, high), on top of max-tokens. |
ai.retry.attempts | 2 | Extra tries when the provider is busy. Wrong keys, missing models and quotas are never retried. |
ai.retry.delays-ms | [1500, 3500] | Pause before each retry. |
ai.retry.on-status | [500, 502, 503, 504] | HTTP statuses worth retrying. |
ai.timeout-ms | 15000 | HTTP timeout per request. Raise it for slow Ollama models. |
ai.auto-setup | false | Set up Ollama by itself on the next start. |
ai.language | "en" | Reply language: a code such as tr, or auto. |
ai.language-detection.mode | speaker | With auto: speaker (each player in their client's language), majority (the most common language online) or system (the machine's locale). |
ai.language-detection.fallback | "en" | Used when nothing is detected or the detected language is not allowed. |
ai.language-detection.allowed | [] | Languages you trust your model with, such as ["en", "tr"]. Empty accepts anything. |
ai.setup-reminder | true | While AI is off, staff get one clickable reminder per start. /mirage ai reminder off turns it off. |
ai.ignore-players | [] | Names bots leave alone. The permission mirageroster.ai.ignore is easier. |
Ollama settings
#| Key | Default | Description |
|---|---|---|
ai.ollama.host | "" | Where the daemon listens. Empty = OLLAMA_HOST, then loopback ports 11434 to 11444. Filled in by the setup. |
ai.ollama.model | "" | Model the setup pulls. Empty = llama3.2:3b for English, qwen2.5:3b for other languages. |
ai.ollama.autostart | true | Bring the daemon back up on server start. Never delays or fails a start. |
ai.ollama.auto-install | true | With AI on and provider: ollama, finish an incomplete setup on start. |
ai.ollama.gpu-libraries | false | Unpack GPU libraries even when no graphics card is detected. |
ai.ollama.binary | "" | Explicit path to an ollama executable. |
ai.ollama.auto-install-without-confirm | false | Install without the confirmation step. |
When bots answer
#Recommended setup
#Especially on a non-English server, the best results come from this combination:
ai:
trigger:
mode: mention
random-chance: 0.0
auto-chat:
enabled: false
chat:
enabled: true # with a hand-written line pool in your language
Ambient chatter then comes from your own lines, and the model only answers when a bot is actually addressed. Short slangy lines are exactly what language models do worst, while hand-written lines cost nothing and never drift. The model then runs a few times a minute instead of a few times a second.
ai.trigger
#| Key | Default | Description |
|---|---|---|
mode | "mixed" | mention (bot's name in the message), keyword (a mention keyword), random, all (not with more than 5 bots) or mixed (mention, keyword or random). |
mention-keywords | 7 words | anyone, help, pvp, trade, shop, yo, hey. |
random-chance | 0.05 | Per-message reply chance, multiplied by the personality's reply-chance-bonus. |
cooldown-seconds | 8 | Minimum seconds between one bot's replies. |
per-player-cooldown-seconds | 15 | Minimum seconds between a bot's replies to the same player. |
max-replies-per-event | 1 | Only used when ai.conversation.enabled is false. |
hear-reformatted-chat | true | Answer lines that a chat plugin cancelled and re-sent in its own format. Muted players and staff chat stay unanswered. |
ai.conversation
#Decides who answers, how many bots and in what order, so the chat feels like a room instead of a chorus. A named bot answers alone; a bot already talking to a player keeps the conversation; a "hi" to everyone gets a few greetings one after another; a question gets one answer, sometimes a second; plain remarks are mostly ignored; lines aimed at another real player are left alone; and bots hold back while real players are busy talking.
| Key | Default | Description |
|---|---|---|
enabled | true | false = the older behaviour (each bot rolls random-chance). |
named.max-bots | 2 | Most bots that answer when several are named in one line. |
follow.seconds / follow.chance | 60 / 0.85 | How long a bot stays the conversation partner, and the odds it answers each line meanwhile. |
greetings.chances | [0.9, 0.55, 0.3] | Odds of the 1st, 2nd and 3rd bot greeting back. |
greetings.after-join-chances | [1.0, 0.75, 0.5, 0.3] | The same within after-join-seconds (180) of the player joining. |
questions.chance | 0.55 | A question aimed at nobody in particular. |
questions.to-everyone-chance | 0.85 | A question to everyone ("anyone…?"). |
questions.second-answer-chance | 0.2 | Odds a second bot adds something. |
remarks.chance | 0.06 | A plain remark. Multiplied by interest-multiplier (2.0) when it touches a bot's interests. |
farewells.chances | [0.6, 0.25] | Odds of bots saying goodbye back. |
canned-greetings | true | Greetings and goodbyes are answered with ready-made lines in the speaker's language (built in for all 12 languages) instead of a model call. |
other-players.chance | 0.0 | Odds a bot reacts to a line aimed at another real player. |
pacing.gap-min-ms / gap-max-ms | 300 / 1500 | Pause between one bot finishing and the next starting. |
pacing.busy-chat-players / busy-chat-seconds / busy-chat-factor | 2 / 30 / 0.5 | When this many other real players spoke recently, every chance is multiplied by the factor. |
pacing.bot-to-bot-quiet-seconds | 6 | Other bots ignore a line for this long after a bot answered it. |
words.* | empty lists | Your own greeting, farewell, question and "everyone" words, added to (or with replace-built-in: true, replacing) the built-in lists. |
hints.* | short English lines | One line each bot gets with its prompt, saying why it is answering. {player} is the speaker. |
Bot-to-bot, auto-chat and realism
#| Key | Default | Description |
|---|---|---|
ai.bot-to-bot.enabled | true | Bots may react to other bots' messages. |
ai.bot-to-bot.max-chain-length | 4 | Bot messages in a row without a real player before the chain pauses. |
ai.bot-to-bot.max-pair-replies | 2 | Replies between one pair of bots within pair-window-seconds (60). |
ai.auto-chat.enabled | true | Idle lines come from the model instead of chat.lines (falls back to the pool if AI is unavailable). |
ai.auto-chat.needs-real-players | true | No auto-chat while nobody is online. |
ai.auto-chat.replace-canned-lines | true | With AI on, the canned pool is bypassed. false lets both run. |
ai.auto-chat.topic-prompt / prompt | built-in | What an idle line is asked for. {topic} is a topic from the server profile. |
ai.reply-delay.min-ms / max-ms | 800 / 2400 | Typing delay before a reply appears. |
ai.reply-delay.stop-to-type | true | Bots stand still and face the speaker while "typing". |
ai.chat-style.enabled | false | Bots copy how your players type (length, capitals, slang, emoji) from a few anonymous lines of public chat. Lines with links, IPs, numbers of 4+ digits, coordinates, commands or names are never kept. |
ai.chat-style.keep / examples / min-lines / retention-days | 300 / 8 / 30 / 30 | Lines kept, examples per reply, lines needed per language, and how long they are kept. |
ai.style.realism | true | Each bot is told what it really has (town, island, or none), and lines it cannot follow up on (invitations, "on my way", "our town" without a town) are dropped. |
ai.style.lowercase | true | Force replies to lowercase. |
ai.style.strip-ai-speak | true | Remove "As an AI…", "Sure!" and similar. |
ai.style.strip-trailing-punct | true | Drop trailing punctuation. |
ai.style.max-length | 120 | Reply length cap in characters, cut at a sentence, clause or word boundary. |
ai.style.typos.enabled / rate | true / 0.05 | Random typos per word. |
ai.blacklist.keywords | nsfw, discord.gg/, http://, https:// | Incoming chat containing any of these is ignored. |
Memory
#Built to keep token use low: a long conversation costs the same per reply as a short one. /mirage ai memory shows what it costs.
| Key | Default | Description |
|---|---|---|
ai.memory.enabled | true | Player notes and room context. Off: bots only see their own recent conversation. |
ai.memory.short-term.max-turns / keep-minutes / max-characters | 20 / 60 / 1600 | A bot's own recent conversation sent with every reply. max-characters is the main cost control (1600 is about 400 tokens). |
ai.memory.room-context.enabled / lines / max-age-seconds / max-line-length | true / 6 / 180 / 100 | Recent public chat shown as context, never answered. |
ai.memory.player-notes.enabled | true | Lasting notes about each player, made by one summary request when a conversation goes quiet. |
ai.memory.player-notes.summarize-after-seconds / min-lines / max-pending-lines | 180 / 4 / 20 | When a conversation is summarised. |
ai.memory.player-notes.max-notes / max-note-length / summary-max-tokens | 6 / 100 / 160 | Size of the notes. |
ai.memory.player-notes.forget-after-days / max-players-per-bot | 30 / 250 | When players are forgotten. |
ai.memory.storage.enabled / save-interval-seconds | true / 60 | Saved under plugins/MirageRoster/ai-memory/, one file per bot. |
personalities.yml
#Each personality is a system prompt that shapes how a bot talks. Bots listed under assignments: get the named personality; everyone else gets one by a stable hash of their name, so it survives restarts.
| Field | Description |
|---|---|
system-prompt | The persona description. |
interests | Keywords; when one shows up in nearby chat the bot is more likely to respond. |
reply-chance-bonus | Multiplier for the reply chance (1.0 none, 2.0 twice as likely, 0.5 half). |
lowercase | Overrides the global lowercase setting. |
max-length | Output length cap for this personality. |
enabled | false = no bot gets this personality. |
servers | Only on these server types from server-profile.yml, such as [skyblock, oneblock]. Empty = every type. |
Shipped personalities: warrior, builder, trader, miner, chill, helper, troll, newbie, plus islander (disabled, for skyblock and oneblock). The default block (lowercase: true, max-length: 80) is inherited by every personality.
assignments:
NorthByte: warrior
PixelVale: builder
Good practice from the file itself:
- Describe a temperament (competitive, calm, money-minded), not facts about a kind of server. Server facts belong in
server-profile.yml. - Keep the prompts in English even when
ai.languageis another language: models follow English instructions best, and the plugin already tells them which language to write in. - Do not add English slang lists to the prompts, and keep the length limits.
- Greetings, reactions and filler should come from
chat.lines-<code>, not from the model.
/mirage ai personality lists them; /mirage ai personality <name> on or off switches one.
server-profile.yml
#What the AI bots know about your server. Without it they guess. Everything here goes into every AI request as a few short lines, so keep entries short. /mirage ai profile shows what the bots currently know.
| Key | Default | Description |
|---|---|---|
enabled | true | false sends no server facts at all. |
type | auto | auto reads it from your plugins (BentoBox means skyblock, Towny means towny …). Or one of general, survival, smp, skyblock, oneblock, factions, prison, lifesteal, kitpvp, practice, minigames, bedwars, creative, towny, anarchy, or your own preset. /mirage ai profile type <type> sets it. |
name | "" | Your server's name as players say it. |
description | "" | One or two sentences about what makes your server yours. |
features | [] | What exists here. Detected features are added. |
commands | [] | Commands players actually use. Detected commands are added. |
not-available | [] | What does NOT exist here. Bots never suggest these. Other spellings go in the same entry, separated by a vertical bar (see the example below). |
avoid | 4 entries | Topics bots never bring up: staff, other servers, real-life meetups, politics and religion. |
events | [] | What is going on right now, such as "2x xp weekend". |
facts | [] | Anything else, one short sentence each. |
topics | [] | Extra topics for idle chatter. |
limits.* | 10, 12, 8, 8, 4, 6, 16, 80 | Entries sent per list (features, commands, not-available, avoid, events, facts, topics) and the length of one entry. |
guard.not-available / guard.avoid | true / true | Drop bot lines that mention something unavailable or an avoided topic. |
guard.commands | true | Drop bot lines naming a command that is not in commands or allowed-commands. Only active when commands is not empty. |
guard.allowed-commands | [msg, tell, w, r, me, help, list, trigger] | Commands a line may always name. |
guard.log-dropped | false | Log every dropped line and why. |
presets | {} | Change what a type means or add your own (summary, topics). |
detection.enabled | true | Read the server from its plugins. |
detection.ignore-plugins | [] | Plugins to pretend are not installed. |
detection.rules | [] | Your own rules (plugins, type, feature, commands), checked before the built-in ones. |
not-available:
- "crystal pvp|cpvp"
- "factions"
events:
- "2x xp weekend"
facts:
- "The end is reset every month."
Social: whispers, teleport requests and reactions
#The social section makes bots answer private messages and teleport requests, and react to what real players do. Replies go through your server's own commands, run as the bot, so your messaging plugin (Essentials, CMI, vanilla …) formats and delivers them, and the player's /r points at the bot afterwards. With AI on, whispers and reactions are written by the model; the canned lines are the fallback. Bots never answer each other here.
| Key | Default | Description |
|---|---|---|
social.enabled | true | Master switch for the whole section. |
private-messages
#| Key | Default | Description |
|---|---|---|
enabled | true | Answer whispers. |
commands | msg, tell, w, whisper, m, pm, message, t, emsg, etell, ewhisper, dm | Commands that send a private message. Matched without namespace. |
reply-commands | r, reply, er, ereply | Reply commands; answered by the bot the player last whispered with. |
reply-command | "msg" | The command a bot answers with. |
delay-min-ms / delay-max-ms | 2500 / 9000 | Time to read and answer. |
ignore-chance | 0.1 | Odds a bot misses a whisper. |
pair-cooldown-seconds | 4 | Minimum seconds between two answers to the same player. |
conversation-timeout-seconds | 600 | After this, /r is no longer assumed to be talking to the bot. Keep it at or below your messaging plugin's own reply timeout. |
use-ai | true | Let the AI write the answers when AI is on. |
ai-prompt | built-in | Instruction for the model; %player%, %bot%, %message%. |
lines | 8 lines | Canned answers when AI is off. |
tpa
#| Key | Default | Description |
|---|---|---|
enabled | true | Handle teleport requests to bots. |
commands | tpa, tpask, call, etpa, etpask, ecall | Requests to teleport to a bot. |
here-commands | tpahere, etpahere | Requests for a bot to come to the player. |
mode | deny | deny, ignore or accept. accept is always downgraded to deny for ghost bots, and for tpahere unless allow-tpahere-accept is true. |
allow-tpahere-accept | false | Allow accepting tpahere, which lets any player pull a bot off its routine. |
accept-command / deny-command | "tpaccept %player%" / "tpdeny %player%" | Commands the bot runs. Drop %player% if your teleport plugin does not take a name. |
delay-min-ms / delay-max-ms | 2000 / 7000 | Response delay. |
ignore-chance | 0.1 | Odds a request is left to time out. |
cooldown-seconds | 10 | Minimum seconds between two responses to the same player. |
deny-reply.chance | 0.5 | Odds a bot whispers why it denied. |
command-overrides
#When a player aims a friend request, party invite or trade at a bot, the player gets the answer a busy player would give instead of a request that hangs forever. Off by default.
| Key | Default | Description |
|---|---|---|
enabled | false | Switch the overrides on. |
bypass-permission | "" | Players with this permission get the real command. |
entries.<name>.commands | Command words, such as "friend add". | |
entries.<name>.mode | replace (the command never runs) or after (it runs, and the response follows after the delay). | |
entries.<name>.responses | Responses; {player}, {bot}, {text}. Write them the way your own plugins word theirs. |
Shipped entries: friend and party (replace), trade (after, 8 to 20 seconds).
reactions
#Bots react in public chat to real players: usually one bot, sometimes a second. Vanished players and hidden join or death messages are ignored.
| Key | Default | Description |
|---|---|---|
enabled | true | Switch reactions on. |
global-cooldown-seconds | 3 | Minimum seconds between any two reactions. |
per-player-cooldown-seconds | 30 | Minimum seconds between reactions of the same kind to the same player. |
max-reactors / extra-reactor-chance | 2 / 0.3 | Most bots per event, and the odds of each extra one. |
first-join.chance | 0.8 | Welcome a first-time player. |
rejoin.chance | 0.3 | Greet a returning player. |
death.chance | 0.35 | React to a real player's death. |
advancement.chance | 0.4 | Congratulate on an announced advancement. |
arrival.chance | 0.1 | A bot that just logged in says hi now and then (use-ai: false by default). |
Each reaction also takes enabled, delay-min-ms, delay-max-ms, use-ai, ai-prompt, lines and optional lines-<code> per language. While lines is left as shipped, bots speaking one of the 12 languages use built-in lines in that language.
chat-triggers
#Canned answers to real players' public chat. Each trigger is a Java regex matched anywhere in the line, a chance and the replies; the first match wins. Write patterns in single quotes so backslashes survive.
| Key | Default | Description |
|---|---|---|
enabled | true | Switch triggers on. |
delay-min-ms / delay-max-ms | 1500 / 4500 | Reply delay. |
localized-greetings / greeting-chance | true / 0.35 | Greetings and goodbyes to the whole chat get a ready-made line in the speaker's language. Only while AI is not answering chat itself. |
triggers | 2 entries | A hi/hello trigger and a gg trigger. |
triggers:
- pattern: '(?i)\bgg\b'
chance: 0.3
replies:
- "gg"
Found a mistake or something missing? Open a ticket on Discord.
Report an issue