nguyenquyhy / DiscordBridge

A Sponge plugin to integrate Minecraft server with a Discord channel
MIT License
31 stars 18 forks source link
discord minecraft spongepowered

Discord Bridge

This is a Sponge plugin to integrate Minecraft server with a Discord channel.

Features

Getting Started for server owners and players

[GETTING STARTED.md](GETTING STARTED.md)

Migrating from 1.x.x or 2.0.0

MIGRATE.md

Build your own .jar

  1. Clone this repository
  2. Run gradlew
  3. The jar file will be in build/libs/DiscordBridge-{version}-all.jar.

Commands

A short summary is below:

Command Shorthand Permission
/discord login /d l discordbridge.login
/discord otp /d otp discordbridge.login
/discord logout /d lo discordbridge.login
/discord broadcast <message> /d b <message> discordbridge.broadcast
/discord status /d s discordbridge.status
/discord reload /d reload discordbridge.reload
/discord reconnect /d reconnect discordbridge.reconnect

Some ideas for future commands

Command Note
/discord config Show current configuration
/discord status Show current Discord account

Configurations

Configuration is stored in config.json file.

You can find some example configurations in examples folders.

Chat Placeholders

Additional Permissions

NOTE: The below permissions are applicable only to unathenticated users. Authenticated users chat under their own Discord accounts, so you can restrict using Text permission of Discord roles.

Permission Use
discordbridge.mention.name
discordbridge.mention.name.<name>
Allows @username/@nickname mentions to be sent from Minecraft
discordbridge.mention.role
discordbridge.mention.role.<role>
Allows @role mentions - the role must have "Allow anyone to @mention" set
discordbridge.mention.channel
discordbridge.mention.channel.<channel>
Allows #channel mention
discordbridge.mention.here Allows the @here mention1
discordbridge.mention.everyone Allows the @everyone mention1

1 The bot must have permission to "Mention Everyone" in order to use @here & @everyone.

Frequently Asked Questions

How to get channel ID

  1. Open User Settings in Discord, then open Appearance section and tick Developer Mode
  2. Right click any channel and click Copy ID

CHANGELOG

CHANGELOG.md

TODO