NPDiscordPlugin
将你的社区凝聚在一起——自动连接 Minecraft 与 Discord。
你的 Discord 服务器和 Minecraft 服务器不应感觉像是两个不同的社区。NPDiscordPlugin 将每位玩家的 Minecraft 账号与其 Discord 个人资料关联起来,自动同步双方各自的权限等级,并将服务器活动接入 Discord,让管理人员无需切换窗口即可在控制台外监控服务器状况。
依赖项:NorrionProjectCorePlugin + LuckPerms,以及一个免费的 Discord 机器人应用(设置仅需五分钟——步骤见下文)。

- 一键绑定 —— 管理员在 Discord 中发布“绑定我的账号”按钮,玩家在游戏中通过
/npdiscord link指令兑换代码即可完成绑定。 - 自动同步的权限等级 —— 在游戏中提升某人的权限,其 Discord 角色会自动更新,反之亦然。你只需一次性设定好 LuckPerms 权限组与 Discord 角色的映射关系。
- 镜像至 Discord 的社区动态 —— 聊天、加入/离开、处罚、经济系统、物品与方块事件等,均可路由到你选择的任意频道。
- 口袋里的服务器健康状态 —— 服务器日志(错误、警告或你选择的任何级别)的实时推送,包含堆栈跟踪信息,直接发送至 Discord 频道。在玩家察觉之前发现崩溃问题。

- 创建一个 Discord 机器人应用(见下文)——只需几分钟。
- 将
NPDiscordPlugin-<version>.jar放入plugins/目录,重启一次以生成配置文件。 - 在
plugins/NorrionProject/discord-config.yml中填写你的机器人令牌、服务器 ID 和频道 ID。 - 再次重启——你的机器人将上线并开始同步数据。
设置机器人
- 前往 Discord 开发者门户 并创建一个新的应用程序。
- 在 Bot 选项卡下,重置并复制令牌,同时启用 Message Content(消息内容)、Server Members(服务器成员)和 Presence(在线状态)意图。
- 在 OAuth2 → URL Generator(URL 生成器)下,勾选
bot和applications.commands作用域,以及 Send Messages / Embed Links / Manage Roles / Read Message History / Use Slash Commands(发送消息 / 嵌入链接 / 管理角色 / 读取消息历史 / 使用斜杠命令),然后打开生成的链接以邀请机器人加入你的服务器。 - 将 Application ID(常规信息选项卡)复制到你的配置文件中。

| 命令 | 适用对象 | 功能说明 |
|---|---|---|
/npdiscord link <code> |
玩家 | 绑定账号 |
/npdiscord create-link <channel-id> |
工作人员 | 发布“绑定我的账号”按钮 |
机器人无法上线?
请仔细检查令牌是否正确,并确保在开发者门户中启用了上述三个意图。
角色未同步? 验证公会 ID 是否正确,并确保机器人的自身角色位于它需要分配的所有角色之上。
这需要 LuckPerms 吗? 权限组同步确实需要。但账号绑定和日志监控无需依赖它即可正常工作。
没有哪个插件能开箱即用、适配所有服务器。如果你需要某项功能、与其他插件的集成或某些调整,且在此处未找到,欢迎在 Discord 上告诉我们——这正是该插件持续改进的方式。

- 官网与维基:norrion.eu
- 技术支持:Norrion Discord
需要 NorrionProjectCorePlugin + LuckPerms
NPDiscordPlugin
Bring your community together — link Minecraft and Discord, automatically.
Your Discord and your server shouldn't feel like two different communities. NPDiscordPlugin links each player's Minecraft account to their Discord profile, keeps their rank in sync on both sides automatically, and pipes server activity into Discord so your staff can keep an eye on things without alt-tabbing into the console.
Requires: NorrionProjectCorePlugin + LuckPerms, and a free Discord bot application (five minutes to set up — steps below).

- One-click linking — staff post a "Link my account" button in Discord, players redeem a code in-game with
/npdiscord link. - Ranks that sync themselves — promote someone in-game and their Discord role updates automatically, and vice versa. You decide once which LuckPerms rank maps to which Discord role.
- Your community, mirrored in Discord — chat, joins/leaves, punishments, economy, item and block events, routed to whichever channels you choose.
- Server health in your pocket — a live feed of server logs (errors, warnings, whatever levels you pick), stack traces included, straight into a Discord channel. Find out about a crash before your players do.

- Create a Discord bot application (see below) — takes a few minutes.
- Drop
NPDiscordPlugin-<version>.jarinplugins/, restart once to generate the config. - Fill in your bot token, server ID, and channel IDs in
plugins/NorrionProject/discord-config.yml. - Restart again — your bot comes online and starts syncing.
Setting up the bot
- Go to the Discord Developer Portal and create a new application.
- Under Bot, reset and copy the token, and enable the Message Content, Server Members, and Presence intents.
- Under OAuth2 → URL Generator, tick the
botandapplications.commandsscopes plus Send Messages / Embed Links / Manage Roles / Read Message History / Use Slash Commands, then open the generated link to invite the bot to your server. - Copy the Application ID (General Information tab) into your config.

| Command | Who | What it does |
|---|---|---|
/npdiscord link <code> |
Players | Link their account |
/npdiscord create-link <channel-id> |
Staff | Post the "Link my account" button |
Bot won't come online?
Double-check the token, and that all three intents are enabled in the developer portal.
Roles aren't syncing? Verify your guild ID is correct, and make sure the bot's own role sits above every role it needs to assign.
Does this need LuckPerms? Rank sync does, yes. Linking and log monitoring work without it.
No plugin fits every server out of the box. If there's a feature, an integration with another plugin, or a tweak you need and don't see here, come tell us on Discord — that's exactly how this plugin keeps improving.

- Website & Wiki: norrion.eu
- Support: Norrion Discord
Requires NorrionProjectCorePlugin + LuckPerms
下载 NPDiscordPlugin
下载 NPDiscordPlugin
下载 NPDiscordPlugin
下载 NPDiscordPlugin
下载 NPDiscordPlugin
下载 NPDiscordPlugin
下载 NPDiscordPlugin
下载 NPDiscordPlugin
下载 NPDiscordPlugin
下载 NPDiscordPlugin
NorrionProject Discord - 更新日志 v1.1.7
? 库更新
- 已更新至 NPCorePlugin v1.7.0
NorrionProject Discord - 更新日志 v1.1.6
? 库更新
- 更新至 NPCorePlugin v1.6.0
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
用于绘制游戏内地图或在浏览器中随探索实时进行地图绘制的实时地图。
评论 0
登录后参与评分
还没有评论,来抢沙发吧