MinecraftAuth.me 的官方插件/模组
自动为你的支持者白名单你的服务器
玩家只需在 minecraftauth.me 上将他们的 Minecraft 账号与 Twitch、YouTube、Patreon 和 Discord 关联一次,然后加入即可。任何不符合你条件的人都会被拒绝,并收到一条告知他们如何加入的消息。
支持运行于: Spigot / Paper / Folia · Sponge · Velocity · BungeeCord · Fabric, Forge & NeoForge (1.16.5 – 26.x)
条件
| 条件 | 允许符合以下条件的玩家进入… |
|---|---|
TwitchFollower() |
关注了你的 Twitch |
TwitchSubscriber() / TwitchSubscriber(2) |
订阅了 Twitch(任意层级 / 第 2 层或更高) |
YouTubeSubscriber() |
订阅了你的 YouTube 频道 |
YouTubeMember() |
是你 YouTube 频道的付费会员 |
PatreonMember() / PatreonMember("Diamond") |
是活跃的赞助者(任意层级 / “Diamond”层级) |
DiscordServer("server id") |
在你的 Discord 服务器中 |
DiscordRole("role id") |
拥有某个 Discord 角色 |
DiscordRole("server id", "Role Name") |
拥有指定名称的角色(名称必须附带服务器 ID) |
Linked() / Linked("discord") |
已关联其账号(以及一个 Discord 账号) |
Discord 相关条件需要你的服务器中存在 MinecraftAuth bot,且你已关联的 Discord 账号必须是该机器人的所有者,或者在该服务器中拥有“管理员”或“管理消息”权限。
组合使用
使用 and、or 和 not(...)。列表中的每一行代表一种替代方案:满足 任一 行的玩家即可进入。
gatekeeper:
conditions:
- TwitchSubscriber() and not(DiscordRole("123456789012345678", "Banned"))
- DiscordRole("234567890123456789") # 工作人员无需订阅(尽管他们应该这样做...)
设置
- 在 minecraftauth.me 上关联你自己的 Twitch / YouTube / Patreon / Discord 账号。
- 在 minecraftauth.me/developers 创建一个应用。
- 将 jar 文件放入
plugins/或mods/目录(Fabric 还需要 Fabric API),然后启动服务器一次。 - 将应用 ID 和密钥粘贴到
MinecraftAuth.yml中的api.application-id/api.application-secret下(模组版位于config/minecraftauth/)。 - 设置你的
gatekeeper.conditions,然后运行/minecraftauth reload(或/mcauth reload)。
须知
- 绕过: 在
gatekeeper.bypass下列出 UUID 或名称。当bypass-admins开启时,操作员和拥有minecraftauth.bypass权限的玩家会跳过检查。 - 服务中断:
on-api-error: deny(默认)或allow决定在无法连接到 MinecraftAuth.me 时发生什么。 - 网络: 将其安装在 Velocity/BungeeCord 代理服务器上,而不是后端服务器。代理可以为每个后端服务器设置不同的规则。
- 离线模式 / 基岩版: 无法检查离线模式服务器。基岩版(Floodgate)玩家需要关联 Java 账号或在
bypass条目中列出。 - 其他插件(如封禁等)仍可与本插件共存。如果你希望 MinecraftAuth 成为唯一的门禁,请关闭原版白名单和其他白名单插件。
完整文档与故障排除:
The official plugin/mod for MinecraftAuth.me
Whitelist your server for your supporters automatically
Players link their Minecraft account to Twitch, YouTube, Patreon and Discord once at minecraftauth.me, then just join. Anyone who doesn't meet your conditions is turned away with a message telling them how to get in.
Runs on: Spigot / Paper / Folia · Sponge · Velocity · BungeeCord · Fabric, Forge & NeoForge (1.16.5 – 26.x)
Conditions
| Condition | Lets in players who… |
|---|---|
TwitchFollower() |
follow you on Twitch |
TwitchSubscriber() / TwitchSubscriber(2) |
subscribe on Twitch (any tier / tier 2 or higher) |
YouTubeSubscriber() |
subscribe to your YouTube channel |
YouTubeMember() |
are paid members of your YouTube channel |
PatreonMember() / PatreonMember("Diamond") |
are active patrons (any tier / the "Diamond" tier) |
DiscordServer("server id") |
are in your Discord server |
DiscordRole("role id") |
have a Discord role |
DiscordRole("server id", "Role Name") |
have a role by name (a name always needs the server ID) |
Linked() / Linked("discord") |
have linked their account (and a Discord account) |
Discord conditions need the MinecraftAuth bot in your server, and your linked Discord account must own it or have Administrator or Manage Messages there.
Combine them
Use and, or and not(...). Each line in the list is an alternative: a player who meets any line gets in.
gatekeeper:
conditions:
- TwitchSubscriber() and not(DiscordRole("123456789012345678", "Banned"))
- DiscordRole("234567890123456789") # staff don't need to subscribe (though they should...)
Setup
- Link your own Twitch / YouTube / Patreon / Discord accounts at minecraftauth.me.
- Create an application at minecraftauth.me/developers.
- Put the jar in
plugins/ormods/(Fabric also needs Fabric API) and start the server once. - Paste the application ID and secret into
api.application-id/api.application-secretinMinecraftAuth.yml(mods:config/minecraftauth/). - Set your
gatekeeper.conditions, then run/minecraftauth reload(or/mcauth reload).
Good to know
- Bypass: list UUIDs or names under
gatekeeper.bypass. Operators and players withminecraftauth.bypassskip the checks whilebypass-adminsis on. - Outages:
on-api-error: deny(default) orallowdecides what happens when MinecraftAuth.me can't be reached. - Networks: install it on the Velocity/BungeeCord proxy, not on the backend servers. Proxies can set different rules for each backend server.
- Offline mode / Bedrock: offline-mode servers can't be checked. Bedrock (Floodgate) players need a linked Java account or a
bypassentry. - Other plugins (bans, etc.) still work alongside it. Turn off the vanilla whitelist and other whitelist plugins if you want MinecraftAuth to be the only gate.
Full docs & troubleshooting:
下载 Minecraft Authentication
下载 Minecraft Authentication
下载 Minecraft Authentication
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Minecraft Authentication
下载 Minecraft Authentication
下载 Minecraft Authentication
下载 Minecraft Authentication
下载 Minecraft Authentication
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Minecraft Authentication
下载 Minecraft Authentication
- 当 MinecraftAuth API 对服务器进行速率限制时,短时间限制现在会等待并自动重试,而不是直接失败(915dc52)
- 所有上传现在仅在 Modrinth 上标记为“仅服务器端”,因为这些集成仅在专用服务器和代理上运行(6192024,730f6a5)
完整变更日志: v2.1.0...v2.2.0
- 会员资格检查现在使用应用的 ID 和密钥。前往 创建一个应用,并在
MinecraftAuth.yml中设置api.application-id和api.application-secret。服务器令牌已停用:现有的server-token目前仍可工作,但会记录弃用警告,并在 API v1 宽限期结束时停止工作。(9b34e76) - 如果仅设置了
application-id或application-secret中的一个,则会记录警告。(9b34e76)
完整变更: v2.0.1...v2.1.0
MinecraftAuth 首次发布,支持 MinecraftAuth.me v2 API。
设置指南:minecraft/README.md
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧