本帖最后由 大家来吃鹅蛋 于 2021-7-7 19:38 编辑

DiscordLink
提示:如果您启用了Discord聊天转发到游戏功能,此插件可能会干扰其他聊天插件(可能无法正常运行)。
Discordlink插件将以智能的方式连通mc和Discord服务器。配置十分简单,插件的配置中可以禁用/启用或修改各个功能。
插件特点:
可以关联discord账户,联通mc和discord聊天内容,封禁/解封玩家
config.yml:
- discord:
- token:
- server_id:
- owner_id:
- link:
- # Requires link to play on the server
- required: false
- # Allow unlinking your minecraft account from discord
- allow_unlink: true
- # Should chat be controlled by this plugin
- chat:
- enabled: true
- # This format will only show in game depending on where the message came from
- # Unlinked format only required if link.required is set to false
- #
- # Variables:
- # %username% - Minecraft username
- # %message% - Message contents
- #
- # Linked Only Variables:
- # %color% - Top role color
- # %tag% - Discord Tag
- format:
- # Message formats for player messages
- player:
- # Should chat format should be applied on regular messages?
- enabled: true
- linked: '&7[&2✎&7] %color%%username% &7(&o%tag%&7) » &r%message%'
- unlinked: '&7[&2✎&7] &7%username% » &r%message%'
- # Message formats for discord messages
- # This will never show if CrossChat is disabled
- # This does not have an enabled field as there is nothing else to process chat messages from discord
- discord:
- linked: '&7[&9✎&7] %color%%username% &7(&o%tag%&7) » &r%message%'
- unlinked: '&7[&9✎&7] %color%%tag%&7 » &r%message%'
- # This will allow minecraft and discord chats/events to communicate with each other in a single channel
- crosschat:
- enabled: true
- # This channel ID must be in the specified server_id server
- channel_id:
- # This webhook CAN be a different channel than channel_id but SHOULDN'T
- # If it is different messages will not be relayed in the same place
- webhook:
- # Hijack and control player status messages
- # If enabled these message wont be sent until the user has linked their account
- # Unlinked format only required if link.required is set to false
- # tag and color variables are only valid in linked messages
- #
- # Variables:
- # %username% - Minecraft username
- #
- # Linked Only Variables:
- # %color% - Top role color
- # %tag% - Discord Tag
- status_messages:
- enabled: true
- join:
- linked: '%color%%username% &7(&o%tag%&7) joined the game'
- unlinked: '&7%username% joined the game'
- quit:
- linked: '%color%%username% &7(&o%tag%&7) left the game'
- unlinked: '&7%username% left the game'
- # Variables:
- # %cause% - Cause of death in game
- death:
- linked: '%color%%username% &7(&o%tag%&7) %cause%'
- unlinked: '&7%username% %cause%'
- kick_messages:
- # Only happens if player is linked, link.allow_unlink is false, and player leaves the guild
- not_in_guild: |-
- &cYou must be a member of the discord server to play on this Minecraft server
- &cYour Minecraft account is already linked to &e%tag%
- &7&odiscord.gg/invite
- # When user is linked and gets banned from discord
- # In the future this will be an actual ban listener and not a kick and can be disabled
- banned: |-
- &cYou have been banned from the discord server
- &7&odiscord.gg/invite
- # If the account was ToS banned or deleted
- # This assumes that you did something bad and shouldn't be able to play
- # In the future this will be an actual listener and not a kick and can be disabled
- tos: |-
- &cYour account is ToS banned or deleted
- &7&odiscord.gg/invite
复制代码 |
被mcbbs吞了,懒得汉化了
食用教程
将插件安装到服务器并/reload confirm
获取Discord用户ID并放在“Discord.owner\u ID”
获取您的Discord服务器ID并放在“Discord.server\u ID”
打开https://discord.com/developers/applications
单击角落中的“新建应用程序”
转到应用程序并点“机器人”
(这个比某种南极动物好多了,官方还允许机器人)
点击“添加机器人”
复制token,粘贴到config.yml中的“discord.token”
找到到“Privileged Gateway intent”,然后点“Server members intent”上的启用
找到OAuth2,选中Scopes下的“bot”和“application.commands”
复制下面的链接并打开
把ta拉进你的服务器/公会
在config.yml里调好配置
重新启动服务器就可以啦!
注意:discord可能有时候被墙掉了,有时候可以用,适用于开在外国的服务器
效果图


下载地址
请前往原帖下载
https://www.spigotmc.org/resources/discordlink.93969/
最后请留个评分,回复一下吧,球球了~
(介绍部分几乎所有均为人工翻译,有一些是机翻了改的)