ModsFinder

swrpgservauth

by ShortWlf

swrpgservauth restricts server access to a predefined username allowlist, disconnecting any player whose name is not listed in the server's configuration file.

FabricServer-side onlyMIT LicenseOpen source1.21.5

What it does

On a Fabric server, the mod checks each joining username against allowed players.json. A player who is not on the list is disconnected during login, so the server admits only the names its administrators have chosen. Administrators manage the allowlist through commands, and every change is written to the configuration file.

Optional IP verification adds a second check. A user can be bound to one or more registered IP addresses, and when verification is enabled the connecting address must match one of them. Verification is set globally by default and can be switched per user, so some accounts can be pinned to an address while others are not. Connection attempts are logged, and the server operator is informed when an unauthorized player tries to join.

It runs on the server alone, so players need nothing extra to join. It is published for Fabric and the single game version 1.21.5, with the 1.0.1 build dated 2025-05-19 as the latest file. The code is open source under the MIT License.

Key features

  1. Username allowlist

    Only names listed in allowed players.json can stay connected; any other player is removed during login.

  2. User management commands

    The addUser command adds a player to the allowed list, and each entry takes the global verifyIp setting by default.

  3. IP registration

    The addIp command attaches an IP address to an existing user, and that address must match when verification is enabled.

  4. Per-user IP verification

    The toggleUserIp command switches the verifyIp flag for one user, so IP checks apply to some accounts and not others.

  5. Live configuration reload

    The refreshConfig command reloads the JSON file, applying edits made outside the game without a restart.

  6. Connection logging

    Attempts by unlisted players are logged, and administrators are notified of them.

Compatibility

Latest build for each game version and loader.

1.21.51.0.1
ReleaseBetaAlphaNot available

Only full game releases are shown. This mod publishes no snapshot builds.

How it compares

Full comparison

senthryX is a Fabric mod for 1.21.1 – 1.21.4 with the same server-side environment, under the MIT License, but it is not open source. IP Whitelist (Fabric) runs server-side and is open source under the GNU General Public License v3.0 only, with builds for 1.21.10 – 1.21.11, so it targets later versions than swrpgservauth. Modsender needs the client, while the server may skip it, and it is also not open source.

ModLoadersGame versionsEnvironmentUpdated
swrpgservauthFabric1.21.5Server-side only2025-05-19
senthryXFabric1.21.1 – 1.21.4Server-side only2025-06-07
IP Whitelist (Fabric)Fabric1.21.10 – 1.21.11Server-side only2026-01-29
ModsenderFabric1.21 – 1.21.11Client required, server optional2026-06-18

Questions

Does a player need swrpgservauth to join the server?

No. Players join without it, since only the server has to run the mod.

How are players added to the allowlist?

Administrators use the addUser command, which stores the entry in allowed players.json. The refreshConfig command reloads the file after outside edits.

What does IP verification do?

When enabled for a user, the connecting address must match an IP registered with addIp. The verifyIp flag defaults to the global setting and can be toggled per user.

In the catalog

swrpgservauth is one of 3,545 Optimization mods on ModsFinder, and one of 2,575 Optimization mods for Fabric. 15,307 mods support Minecraft 1.21.5.

More from ShortWlf

All projects

Similar mods

What the author says

Swrpgservauth is a Minecraft server authentication mod that restricts player access based on a predefined username allowlist. The mod prevents unauthorized players from joining by checking their username against a configuration file (allowed_players.json). If a player is not listed, they are disconnected upon…
ShortWlf, on the Modrinth page

Official listing

Owner
ShortWlf
Published
2025-05-07
Updated on Modrinth
2025-05-19
Facts verified
2026-10-15

Tags