NPDiscordPlugin
将你的社区凝聚在一起 —— 自动关联 Minecraft 与 Discord。
为什么要安装这个?
你的 Discord 服务器和你的游戏服务器不应该是两个割裂的社区。NPDiscordPlugin 将每位玩家的 Minecraft 账号与其 Discord 个人资料关联起来,自动同步双方的玩家等级(Rank),并将服务器活动导入 Discord,让工作人员无需切换窗口到控制台就能监控服务器状况。
所需依赖:NorrionProjectCorePlugin + LuckPerms,以及一个免费的 Discord Bot 应用(设置只需五分钟,步骤见下文)。
它为服务器带来什么
- 一键绑定 —— 工作人员在 Discord 发布“绑定我的账号”按钮,玩家在游戏中使用
/npdiscord link兑换代码即可完成绑定。 - 自动同步的等级 —— 在游戏中提升某人的等级,其 Discord 角色会自动更新,反之亦然。你只需一次性设定好哪个 LuckPerms 等级对应哪个 Discord 角色。
- 镜像到 Discord 的社区 —— 聊天、加入/离开、处罚、经济、物品和方块事件等,均可路由到你选择的频道中。
- 口袋里的服务器健康状态 —— 实时推送服务器日志(错误、警告或你选择的任何级别),包含堆栈跟踪信息,直接发送到 Discord 频道。在你玩家发现崩溃之前先获知情况。
设置指南
- 创建一个 Discord Bot 应用(见下文)—— 只需几分钟。
- 将
NPDiscordPlugin-<version>.jar放入plugins/目录,重启一次以生成配置文件。 - 在
plugins/NorrionProject/discord-config.yml中填写你的 Bot Token、服务器 ID 和频道 ID。 - 再次重启 —— 你的 Bot 上线并开始同步数据。
配置 Bot 的步骤
- 前往 Discord Developer Portal 并创建一个新的应用(Application)。
- 在 Bot 选项卡下,重置并复制 Token,并启用 Message Content(消息内容)、Server Members(服务器成员)和 Presence(在线状态)意图(Intents)。
- 在 OAuth2 → URL Generator 下,勾选
bot和applications.commands作用域,以及 Send Messages / Embed Links / Manage Roles / Read Message History / Use Slash Commands 权限,然后打开生成的链接将 Bot 邀请到你的服务器。 - 将 Application ID(位于 General Information 标签页)复制到你的配置文件中。
命令
| 命令 | 使用者 | 功能 |
|---|---|---|
/npdiscord link <code> |
玩家 | 绑定他们的账号 |
/npdiscord create-link <channel-id> |
工作人员 | 发布“绑定我的账号”按钮 |
常见问题
Bot 无法上线? 请双重检查 Token,并确保在开发者门户中已启用所有三个意图。
角色不同步? 验证你的 Guild ID 是否正确,并确保 Bot 自身的角色位于它需要分配的所有角色之上。
这需要 LuckPerms 吗? 等级同步确实需要。但账号绑定和日志监控功能在没有 LuckPerms 的情况下也能正常工作。
缺少你想要的功能?
没有插件能开箱即用地满足所有服务器的需求。如果你需要某个功能、与其他插件的集成或此处未列出的调整,欢迎来 Discord 告诉我们 —— 这正是本插件不断完善的动力所在。
链接
- 官网 & Wiki: norrion.eu
- 技术支持: Norrion Discord
需 NorrionProjectCorePlugin + LuckPerms
NPDiscordPlugin
Bring your community together — link Minecraft and Discord, automatically.
Why install this?
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).
What it does for your server
- 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.
Setup
- 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.
Commands
| Command | Who | What it does |
|---|---|---|
/npdiscord link <code> |
Players | Link their account |
/npdiscord create-link <channel-id> |
Staff | Post the "Link my account" button |
FAQ
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.
Missing something?
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.
Links
- Website & Wiki: norrion.eu
- Support: Norrion Discord
Requires NorrionProjectCorePlugin + LuckPerms
下载 NPDiscordPlugin
下载 NPDiscordPlugin
下载 NPDiscordPlugin
下载 NPDiscordPlugin
下载 NPDiscordPlugin
下载 NPDiscordPlugin
下载 NPDiscordPlugin
下载 NPDiscordPlugin
下载 NPDiscordPlugin
下载 NPDiscordPlugin
NorrionProject Discord - 更新日志 v1.1.8
📦 库更新
- 已更新至 NPCorePlugin v1.8.0
- 支持 Minecraft 26.3
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
一个在游戏内运行的 Minecraft 地图编辑器! 支持选区、蓝图、复制粘贴、笔刷和脚本。 可在创造模式中使用,也可在生存模式中临时使用。
评论 0
登录后参与评分
还没有评论,来抢沙发吧