Skip to content

Minecraft Authentication

By ScarszOwner

Allow users to link their Minecraft accounts to various services and automatically whitelist them based on specified conditions

3k downloads Updated
26.3 26.2

No ratings yet

Be the first to rate it.

Rate it

Community listing page

Community listing page, reviews may not be monitored by the author.

About

Description

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

  1. Link your own Twitch / YouTube / Patreon / Discord accounts at minecraftauth.me.
  2. Create an application at minecraftauth.me/developers.
  3. Put the jar in plugins/ or mods/ (Fabric also needs Fabric API) and start the server once.
  4. Paste the application ID and secret into api.application-id / api.application-secret in MinecraftAuth.yml (mods: config/minecraftauth/).
  5. 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 with minecraftauth.bypass skip the checks while bypass-admins is on.
  • Outages: on-api-error: deny (default) or allow decides 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 bypass entry.
  • 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: https://minecraftauth.me/developers/docs/minecraft