Перейти к содержимому
Mineforgian

Gatekeeper

A Fabric mod for Minecraft that replaces username/password login with cryptographic key authentication.

Загрузки
114
Подписчики
0
Обновлён
16 августа 2026 г.
Лицензия
LGPL-3.0-only

Опубликован 23 мая 2026 г.

Gatekeeper replaces username/password login on offline-mode servers with cryptographic key authentication. Every player holds a unique digital key that the server recognises — no password to guess, share, or steal.

Designed for small offline-mode servers where the operator personally knows every player.

Runs on Fabric and on Paper — both server implementations speak the same protocol, and the same Fabric client mod works with either.


How it works

When you connect to a Gatekeeper server for the first time, the mod silently generates a unique key pair for that server and stores it on your computer. Every subsequent connection your game proves — cryptographically — that it holds the right key, without ever transmitting it over the network. The server checks your key against its approved list and lets you in.

No passwords. No shared secrets. Nothing to forget or leak.


Requirements

  • Server: either Fabric with Fabric API, or Paper
  • Client: Fabric with Fabric API
  • Every connecting client must have the mod installed, whichever server platform you run
  • Client and server must be on matching versions — an outdated client is turned away with a message naming the version to install
  • The server must run with online-mode=false in server.properties

Spigot, CraftBukkit and Folia are not supported: holding a player in the configuration phase needs Paper's connection API.


Installation

Server (Fabric)

  1. Install Fabric and Fabric API.
  2. Drop gatekeeper-<version>.jar into the mods/ folder.
  3. Set online-mode=false in server.properties.
  4. Start the server — a config/mcgatekeeper/ directory is created automatically.

Server (Paper)

  1. Drop gatekeeper-paper-<version>.jar into the plugins/ folder.
  2. Set online-mode=false in server.properties.
  3. Start the server — a plugins/McGatekeeper/ directory is created automatically.

Important: online-mode=false without Gatekeeper means anyone who knows a player's username can impersonate them. Gatekeeper eliminates that risk, but it means you must approve every new player before they can join.

Client

  1. Install Fabric and Fabric API.
  2. Drop gatekeeper-<version>.jar into your mods/ folder.
  3. That's it — keys are generated and stored automatically.

First connection

The first time a player connects:

  1. A key pair is generated for that server in the background.
  2. The connection screen shows a message saying the server is waiting for admin approval.
  3. An operator runs /gate allow <username> <label> to approve the player and register their key.

The player is let in immediately and their key is remembered for all future connections from that device.


Admin commands

Command What it does
/gate allow <player> <label> Approves a waiting player and registers their key
/gate list <player> Lists all registered keys for a player with fingerprints
/gate reset <player> Removes all keys for a player
/gate reset <player> <label> Removes a single key (e.g. a lost device)

Tab-complete on /gate allow suggests players currently awaiting approval.

Requires operator level 3 on Fabric, or the mcgatekeeper.admin permission (granted to operators by default) on Paper.


Key management

You can view and manage your stored keys via Mods → Gatekeeper → Manage Keys (requires Mod Menu). Each entry shows the server address the key was last used with, plus short fingerprints for both the server and client keys.


For full technical documentation, the security model, and source code, see the GitHub repository.

Ченджлог

1.1+1.21.11Релиз1.21.11 · 16 августа 2026 г.

First release of the Paper plugin. It speaks the same protocol as the Fabric server mod, so players connect with the same Fabric client mod (1.1 or newer).

  • /gate allow|reset|list, behind the mcgatekeeper.admin permission (granted to operators by default).
  • server.key and players.json use the same format as the Fabric mod, so a server can move between platforms without anyone being re-approved.
  • Requires Paper. Spigot, CraftBukkit and Folia are not supported — holding a player in the configuration phase needs Paper's connection API.
1.1+1.21.11Релиз1.21.11 · 16 августа 2026 г.

Breaking: the server and the client must both be on 1.1. A 1.0 client is turned away with a message naming the version to install.

  • Paper servers are now supported by a companion plugin. This same client mod authenticates against either platform.
  • The handshake moved from plugin messaging channels to vanilla cookies (protocol version 2). The client no longer announces a channel on every server it joins, so servers that do not use Gatekeeper are told nothing about it.
  • Fixed: a player who authenticated but dropped before reaching the world could block admin approval for their account until the server restarted.

Комментарии

Загружаем…