Minecraft step by step
Connect a Minecraft server (Paper or Spigot) to a Discord channel with the RobertLink plugin: installation, config.yml, commands, account linking and console commands.
On this page
Before you start 1. Create the bridge 2. Install the plugin 3. The config.yml file 4. Check that it works 5. Settings in Robert 6. Plugin commands and permissions 7. Link accounts Synchronize roles and groups 8. Console commands from Discord 9. How it works and files 10. Troubleshooting Build the plugin yourselfRobertLink is the official plugin that connects your Minecraft server to a Discord channel through a bridge: two-way chat, joins, deaths and advancements, live status, console commands from Discord and account linking. No dependencies: a single .jar file.
RobertLink.jar (Minecraft 1.17 and newer) RobertLink-legacy.jar (1.8.8 to 1.16.5)
Before you start
| You need | Detail |
|---|---|
| A Paper (recommended) or Spigot server | Any version from 1.8.8. 1.17 and newer: RobertLink.jar (Java 16 or newer). 1.8.8 to 1.16.5: RobertLink-legacy.jar (Java 8 or newer); on these versions advancements are announced by their technical name, hidden ones are not filtered, replies of vanilla commands run from Discord are not shown, and &#RRGGBB colours need 1.16 |
| Robert on your Discord server | Add it if you have not yet |
| The Premium plan or higher | 1 bridge(s) on Premium, 5 on Pro, 25 on Network |
| Be owner or manager of the Discord server | To create a bridge |
| Outgoing HTTPS access from the Minecraft server | No port to open |
1. Create the bridge
- Open the dashboard, pick your Discord server, then Developers → Bridges → Create a bridge.
- Choose the Minecraft type and name the bridge (for example "Survival").
- Choose the chat channel linked to the game. Optional: a status channel, where Robert keeps a "🟢 Online · 12/50 players" message up to date.
- Set the options (see below), then confirm.
- Robert shows the
rbb_…token. Copy it right away: it is shown only once. You can also click Download config.yml: the file comes pre-filled with the API address and your token.
The token is the bridge's key
Do not share it and do not put it in a repository. It only gives access to this bridge, but anyone could write in your channel with it. If it leaks: regenerate it from the same page, the old one stops working.
2. Install the plugin
- Stop your server (or prepare the folder), then copy
RobertLink.jarinto theplugins/folder. - Start the server: the plugin creates
plugins/RobertLink/config.yml. - Two ways to configure it:
- Easiest: replace this file with the
config.ymldownloaded from the dashboard; - By hand: open it and fill in
api-urlandtoken(see below).
- Easiest: replace this file with the
- Type
/discord reloadin the console (or restart).
At the first heartbeat (30 seconds at most), the bridge goes online in the dashboard, and the status channel appears.
3. The config.yml file
# Bridge API address (ends with /api/v1/bridge)
api-url: "https://robert-bot.com/api/v1/bridge"
# Bridge token (starts with rbb_)
token: "rbb_YOUR_TOKEN"
language: en # plugin message language: fr or en
poll-wait-seconds: 25 # maximum wait when reading Discord messages (1 to 25)
heartbeat-seconds: 30 # heartbeat: players, TPS, version (10 to 60). No heartbeat for 90 s: "offline"
debug: false
chat:
to-discord: true # game chat → Discord
from-discord: true # channel messages → game
# Colors: &a, &l… and &#RRGGBB. Variables: {name} {message} {role} {id} {color}
discord-format: "&9[Discord] &f{name}&7: &f{message}"
ignore-prefixes: [] # e.g. ["!"]: these messages are not sent to Discord
max-length: 500 # 20 to 1900
events: # local filter (Robert also applies its own settings)
join: true
leave: true
death: true
advancement: true
server-start: true
server-stop: true
console: # see "Console commands" below
enabled: false
whitelist:
- "list"
output-wait-ticks: 10 # 20 ticks = 1 second
max-output: 1500
link:
enabled: true # account linking
group-sync: # Discord roles → in-game groups (LuckPerms by default)
enabled: false
add-command: "lp user {player} parent add {group}"
remove-command: "lp user {player} parent remove {group}"
queue:
max-size: 1000 # persistent queue if Robert is unreachable
max-age-seconds: 3600
max-event-age-seconds: 120 # an older message or command is ignored, never run late
The file generated by the plugin is commented in French and English. An event must be allowed in both places: in Robert (the bridge setting) and in the plugin's events:.
4. Check that it works
- In game, say something in chat: the message appears in the Discord channel, under the player's name and with their head (
display: webhooksetting). - Write in the Discord channel: the message appears in game chat, as
[Discord] Name: message. - Join, leave, die: small embeds appear in the channel.
- Type
/discord statusin game: connection, queue, counters, last error.
5. Settings in Robert
On the Developers → Bridges page, open the bridge to set (details in Bridges):
- the relay directions (Discord → game, game → Discord);
- the events shown (join, leave, death, advancement, start and stop);
- the format sent to the game and the webhook or bot display;
- filters: masked links, neutralized mentions (always), auto-moderation banned words;
- console commands, account linking, synchronized roles.
Most changes apply without restarting: the plugin is notified (config_changed) and re-reads the settings.
6. Plugin commands and permissions
Command: /discord (alias /robertlink).
| Command | Permission | Default | Effect |
|---|---|---|---|
/discord link <code> |
robertlink.link |
all players | Validates the 6-digit code given by Discord |
/discord status |
robertlink.status |
operators | Connection, queue, counters, last error |
/discord reload |
robertlink.reload |
operators | Re-reads config.yml |
| — | robertlink.silent |
nobody | No message to Discord for this player, and absent from the player list (staff vanish) |
| — | robertlink.admin |
operators | link + status + reload |
7. Link accounts
Linking associates a Minecraft player with a Discord account.
- On Discord, the player types
/bridge link game:minecraftand gets a 6-digit code, valid for 10 minutes (visible only to them). - In game, they type
/discord link 482913. - The plugin confirms in chat. Depending on the bridge settings, Robert gives the "linked player" role and changes the Discord nickname to the chosen format (for example "Jimmy (Steve)").
A code works only once; too many failed attempts are limited. Your shop, site or rank plugin can then query GET /links?external_id=<UUID> (reference) to know who is who.
Synchronize roles and groups
In the bridge, associate Discord roles with in-game groups (for example the "VIP" role with the vip group). For a linked player, Robert tells the plugin which groups to apply; with group-sync.enabled: true, the plugin runs add-command or remove-command (LuckPerms commands by default) when a role is gained or lost.
8. Console commands from Discord
This feature is disabled by default, and each command must be allowed twice:
| Where | Setting |
|---|---|
| In Robert | Bridge → Console: enable, pick the allowed roles, and the whitelist |
| In the plugin | console.enabled: true and the console.whitelist list |
In the lists, * stands for one or more characters, case-insensitive: kick * allows kick Steve.
console:
enabled: true
whitelist:
- "list"
- "whitelist add *"
- "whitelist remove *"
- "kick *"
From Discord:
/bridge command bridge:Survival command:whitelist add Steve
The command's output is captured and returned in the reply (output-wait-ticks, max-output). Every command, accepted or refused, is logged in the server console and in the bridge's log.
Be strict with the whitelist
Never put a bare *, nor op *, nor stop, nor lp *, unless you know exactly what you are doing: anyone with an allowed role could run them. Prefer precise commands and a single staff role.
Other useful Discord commands: /bridge status (online, players, version, last heartbeat latency) and /bridge players.
9. How it works and files
| Thread | Role |
|---|---|
| main | Listens to the game (queueing only), runs commands, shows Discord messages. No network call: the server does not slow down |
RobertLink-Outbox |
Sends events in batches of 50, only deletes a batch once acknowledged, reconnects with exponential delay (1 s to 60 s), honors Retry-After |
RobertLink-Poll |
Long-polling of Discord messages, cursor kept |
RobertLink-Net |
Heartbeat every 30 seconds |
Files in plugins/RobertLink/: queue.jsonl (events waiting if Robert is unreachable, sent when it is back), cursor.txt (read position), groups.json (applied groups).
10. Troubleshooting
| Symptom | Likely cause |
|---|---|
| "Incomplete configuration" at startup | api-url or token missing (the token starts with rbb_) |
401 or 403 in the logs |
Token regenerated or bridge disabled: take the new token. Events stay queued |
/discord status: connection interrupted |
Check the server's outgoing HTTPS access to Robert (firewall, host) |
| Bridge "offline" while the server runs | No heartbeat for 90 s: wrong token or address, or a network cut |
| Lost messages | Plan rate exceeded (30, 120 or 300 messages per minute): the excess is dropped |
| Game chat missing from Discord | Another chat plugin cancels or replaces the event: RobertLink listens at MONITOR priority; test without the other plugin |
| Discord messages do not reach the game | chat.from-discord is false, the "Discord → game" setting is off in Robert, or the chat channel differs from the bridge's |
| An event does not appear | It must be enabled in Robert and in the plugin's events: |
rate_limited when asking for a code |
Too many codes in a short time: retry in a minute |
Build the plugin yourself
The code is in the repository, under sdk/minecraft/ (Java 17 and Gradle):
cd sdk/minecraft
gradle build # → build/libs/RobertLink.jar (JUnit tests included)
No dependency is embedded: the Paper API is used as compileOnly.
Spotted a mistake? Got a question? Let us know on the support server.