Discord: Difference between revisions
New plugin page |
Editing pass: cut detail a reader does not need |
||
| Line 3: | Line 3: | ||
== Linking your account == | == Linking your account == | ||
# In game, run <code>/discord link</code>. You get a 12 character code in chat | # In game, run <code>/discord link</code>. You get a 12 character code in chat. | ||
# In Discord, in any server the bot is in, run <code>/link</code> and paste the code | # In Discord, in any server the bot is in, run <code>/link</code> and paste the code. | ||
The code works once and expires after 10 minutes. Running <code>/discord link</code> again gives you a new code and cancels the old one. Five wrong codes within five minutes locks you out of <code>/link</code> for 10 minutes. | The code works once and expires after 10 minutes. Running <code>/discord link</code> again gives you a new code and cancels the old one. Five wrong codes within five minutes locks you out of <code>/link</code> for 10 minutes. | ||
| Line 14: | Line 14: | ||
<code>/discord status</code> in game shows what you are linked to. <code>/me</code> in Discord shows your linked Minecraft name, when you linked, and your roles in each Discord server you share with the bot. | <code>/discord status</code> in game shows what you are linked to. <code>/me</code> in Discord shows your linked Minecraft name, when you linked, and your roles in each Discord server you share with the bot. | ||
=== What linking | === What linking gives you === | ||
You can talk in relay channels. | You can talk in relay channels. A message typed there by an unlinked member is removed. | ||
You can set up relays for groups you belong to | You can set up relays for groups you belong to. | ||
A Discord server can pick a role for linked members | A Discord server can pick a role for linked members, which the bot gives you when you link. | ||
== Group chat relay == | == Group chat relay == | ||
A Discord channel can be bound to a [[Name Layer]] group. Group chat from the game then shows up in the channel | A Discord channel can be bound to a [[Name Layer]] group. Group chat from the game then shows up in the channel under each player's name. Messages typed in the channel are sent into the group's chat in game under the writer's Minecraft name. See [[Chat]] for how group chat works in game. | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 40: | Line 38: | ||
Only the main server is connected. Nothing said on the [[PvP Arena]] or [[Tutorial]] servers reaches Discord. | Only the main server is connected. Nothing said on the [[PvP Arena]] or [[Tutorial]] servers reaches Discord. | ||
The global group <code>!</code> can only be bound in the CivNodes Discord itself | The global group <code>!</code> can only be bound in the CivNodes Discord itself. | ||
When typing from Discord: | |||
* Messages are cut to 256 characters. | * Messages are cut to 256 characters. | ||
* Each person gets a burst of 5 messages, refilling at one per second. Messages over that rate are dropped without a warning. | * Each person gets a burst of 5 messages, refilling at one per second. Messages over that rate are dropped without a warning. | ||
* Only text is relayed. Images and other attachments are not. | * Only text is relayed. Images and other attachments are not. | ||
Messages from the game cannot ping anyone in Discord. | |||
=== Setting up a relay === | === Setting up a relay === | ||
| Line 62: | Line 60: | ||
The first group bound to a channel is its writer, which makes it two-way. Any further groups bound to the same channel are readers. Their chat appears in Discord, but what people type in Discord only goes to the writer group. One group can be bound to several channels, in several Discord servers. | The first group bound to a channel is its writer, which makes it two-way. Any further groups bound to the same channel are readers. Their chat appears in Discord, but what people type in Discord only goes to the writer group. One group can be bound to several channels, in several Discord servers. | ||
The relay depends on the person who bound it. If that person unlinks or loses <code>READ_CHAT</code> in the group, the relay unbinds itself | The relay depends on the person who bound it. If that person unlinks or loses <code>READ_CHAT</code> in the group, the relay unbinds itself. | ||
Anyone who is linked and can type in the channel speaks into the group's chat, whether or not they are in the group. Lock the Discord channel down to the people you want in that chat. | Anyone who is linked and can type in the channel speaks into the group's chat, whether or not they are in the group. Lock the Discord channel down to the people you want in that chat. | ||
| Line 88: | Line 86: | ||
== Snitch alerts == | == Snitch alerts == | ||
A channel bound to a group also receives that group's [[Juke Alert]] snitch alerts. They are on from the start if the person binding has <code>SNITCH_NOTIFICATIONS</code> in the group, and off otherwise. Turning them on later needs the binder to hold that permission. | A channel bound to a group also receives that group's [[Juke Alert]] snitch alerts. They are on from the start if the person binding has <code>SNITCH_NOTIFICATIONS</code> in the group, and off otherwise. Turning them on later needs the binder to hold that permission, and if the binder loses it the alerts stop. | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 102: | Line 100: | ||
|} | |} | ||
Each alert gives the player, the coordinates, the snitch's name and the server | Each alert gives the player, the coordinates, the snitch's name and the server. Players with <code>SNITCH_IMMUNE</code> in the group do not produce alerts. | ||
Players with <code>SNITCH_IMMUNE</code> in the group do not produce alerts | |||
== Server status == | == Server status == | ||
In the CivNodes Discord, <code>/status</code> shows the live player count, TPS, uptime, peak players and who is online | In the CivNodes Discord, <code>/status</code> shows the live player count, TPS, uptime, peak players and who is online. | ||
== Commands == | == Commands == | ||
Latest revision as of 14:05, 23 November 2026
CivNodes has a Discord bot, Mirabell, that connects the main server to Discord. It carries group chat between the game and Discord channels, posts snitch alerts, and links your Minecraft account to your Discord account. The server's own Discord is at discord.gg/civnodes.
Linking your account
- In game, run
/discord link. You get a 12 character code in chat. - In Discord, in any server the bot is in, run
/linkand paste the code.
The code works once and expires after 10 minutes. Running /discord link again gives you a new code and cancels the old one. Five wrong codes within five minutes locks you out of /link for 10 minutes.
The code is printed in your chat. If you are streaming or sharing your screen, someone else can redeem it before you do, so get a fresh one off camera.
One Minecraft account links to one Discord account. If the Minecraft account is already linked to a different Discord account the link is refused, and only staff can remove the old one. There is no command to unlink yourself. If your Discord account links a second Minecraft account, the new one replaces the old.
/discord status in game shows what you are linked to. /me in Discord shows your linked Minecraft name, when you linked, and your roles in each Discord server you share with the bot.
What linking gives you
You can talk in relay channels. A message typed there by an unlinked member is removed.
You can set up relays for groups you belong to.
A Discord server can pick a role for linked members, which the bot gives you when you link.
Group chat relay
A Discord channel can be bound to a Name Layer group. Group chat from the game then shows up in the channel under each player's name. Messages typed in the channel are sent into the group's chat in game under the writer's Minecraft name. See Chat for how group chat works in game.
| Chat | Relayed |
|---|---|
Group chat, including the global group ! |
Yes, to channels bound to that group |
| Local chat (the ranged chat around you) | No |
| Private messages | No |
Only the main server is connected. Nothing said on the PvP Arena or Tutorial servers reaches Discord.
The global group ! can only be bound in the CivNodes Discord itself.
When typing from Discord:
- Messages are cut to 256 characters.
- Each person gets a burst of 5 messages, refilling at one per second. Messages over that rate are dropped without a warning.
- Only text is relayed. Images and other attachments are not.
Messages from the game cannot ping anyone in Discord.
Setting up a relay
In the channel you want to use, run /relay bind with the group name. You need all of these:
- The Manage Channels permission in that Discord channel (the server's admins can change who may use
/relay). - A linked account.
- The
READ_CHATpermission in the group, which members have by default.
The bot needs Manage Webhooks and Manage Messages in the channel.
The first group bound to a channel is its writer, which makes it two-way. Any further groups bound to the same channel are readers. Their chat appears in Discord, but what people type in Discord only goes to the writer group. One group can be bound to several channels, in several Discord servers.
The relay depends on the person who bound it. If that person unlinks or loses READ_CHAT in the group, the relay unbinds itself.
Anyone who is linked and can type in the channel speaks into the group's chat, whether or not they are in the group. Lock the Discord channel down to the people you want in that chat.
| Discord command | What it does |
|---|---|
/relay bind |
Bind this channel to a group |
/relay unbind |
Remove a binding from this channel |
/relay writer |
Choose which bound group is the two-way one |
/relay show |
Show this channel's bindings and settings |
/relay list |
List every relay in this Discord server |
/relay set show-snitches |
Turn snitch alerts on or off for a binding |
/relay set snitch-ping |
Set a role or user to ping on each snitch alert, or null to clear it
|
/relay set chat-format |
Change how game messages are laid out, using {name}, {group}, {server} and {text}
|
Snitch alerts
A channel bound to a group also receives that group's Juke Alert snitch alerts. They are on from the start if the person binding has SNITCH_NOTIFICATIONS in the group, and off otherwise. Turning them on later needs the binder to hold that permission, and if the binder loses it the alerts stop.
| Alert | When it fires |
|---|---|
| hit | A player enters a snitch's range |
| login | A player logs in inside a snitch's range |
| logout | A player logs out inside a snitch's range |
| protection lost | A node snitch loses a chunk of its field. The coordinates are the lost chunk, not the snitch. |
Each alert gives the player, the coordinates, the snitch's name and the server. Players with SNITCH_IMMUNE in the group do not produce alerts.
Server status
In the CivNodes Discord, /status shows the live player count, TPS, uptime, peak players and who is online.
Commands
| Where | Command | What it does |
|---|---|---|
| In game | /discord link |
Get a code to link your Discord account |
| In game | /discord status |
Show your current link |
| Discord | /link |
Finish linking with the code from the game |
| Discord | /me |
Show your link and roles |
| Discord | /status |
Show live server stats (CivNodes Discord only) |
| Discord | /relay |
Manage relays in a channel (needs Manage Channels) |