All Mods Resource Packs Data Packs Shaders Modpacks Plugins
safeserver

safeserver

by YourAverageDev • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

Safeserver

A simple Fabric mod for Minecraft that adds mandatory password authentication to your server, enhancing security.

Made for online-mode off / cracked servers.

Features

  • Password Protection: Players must set a password on their first join and log in on subsequent joins.
  • Interaction Blocking: Prevents unauthenticated players from breaking/placing blocks, using items/entities, or interacting with the world.
  • Command Restriction: Blocks all commands except /login and /setpassword until the player is authenticated.
  • Secure Storage: Passwords are securely hashed (SHA-256) and stored in a JSON file (config/safeserver/passwords.json).
  • OP Safety:
    • Temporarily removes OP status from players upon joining until they authenticate.
    • Removes OP status from players upon disconnecting as a safety measure.
    • Restores OP status after successful authentication if the player was originally OP.
  • Position Freeze & Safety: Players are placed in Spectator mode and teleported to a safe, fixed location (0, calculated surface Y, 0) upon joining if authentication is needed. They are kept at this location until authenticated, preventing coordinate leakage. Their original position is restored upon successful login.

Commands

  • /setpassword <password> <password>
    • Sets your initial password upon first joining the server.
    • Requires typing the password twice for confirmation.
    • Only usable when required (first join).
  • /login <password>
    • Logs you into the server with your existing password.
    • Only usable when required (subsequent joins).
  • /changepassword <oldPassword> <newPassword> <newPassword>
    • Allows an authenticated player to change their own password.
    • Requires the old password and confirmation of the new password.
  • /resetpassword <playerName>
    • OP Only (Level 2+): Resets the password for the specified player.
    • Forces the target player to set a new password using /setpassword on their next join (or immediately if they are currently online).

Installation

  1. Ensure you have the Fabric Loader installed.
  2. Download the Safeserver mod JAR file.
  3. Place the JAR file into your server's mods folder.
  4. Restart your server.

The mod will automatically generate the necessary configuration file upon first load.

How to Install safeserver (Mod)

safeserver by YourAverageDev is verified for Fabric across Minecraft versions 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1 (latest release: 2.2.0, file size: 37 KB). Follow the steps below to install it safely from ModCraft.tv:

  1. Click the Download button above and select your Minecraft version (1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1) and platform (Fabric).
  2. Make sure you have the compatible loader or environment installed for Fabric.
  3. Move the downloaded safeserver file into your Minecraft .minecraft/mods folder and launch the game.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
26.3 26.2 26.1.x +2
Fabric
1mo ago 1
26.2 26.1.x 1.21.x +1
Fabric
4mo ago 1
26.2
Fabric
4mo ago 1
26.1.2
Fabric
7mo ago 1
26.1.1
Fabric
7mo ago 1
1.21.11
Fabric
9mo ago 1
1.21.8
Fabric
last yr. 1
1.21.x
Fabric
last yr. 1
1.21.x
Fabric
last yr. 1
1.21.x
Fabric
last yr. 1
1.21
Fabric
last yr. 1
1.20.x
Fabric
last yr. 1
1.20.x
Fabric
last yr. 1
1.20.5
Fabric
last yr. 1
1.20.4
Fabric
last yr. 1
1.20.4
Fabric
last yr. 1
1.20.4
Fabric
last yr. 1
1.20.4
Fabric
last yr. 1
1.20.4
Fabric
last yr. 1
[2.2.0] Safeserver 2.2.0 by YourAverageDev on Sep 20, 2026
Download
Adds Minecraft 26.3 support.

Everything else is unchanged. Every release from 1.20.1 through 26.2 is still
built and shipped here, and the authentication flow itself is untouched. 26.3
needed no code changes at all — the server APIs the mod hooks into are the same
as they were in 26.2.

Downloads are per-version, so pick the jar matching your server exactly, for
example safeserver-2.2.0+mc26.3.jar for a 26.3 server.
[2.1.3] Safeserver 2.1.3 by YourAverageDev on Jul 11, 2026
Download
Safeserver 2.1.3 supports every stable Minecraft Java release after 1.20 through 26.2. Download the JAR whose +mc suffix matches your server version.
[2.1.2] safeserver 2.1.2 by YourAverageDev on Jun 28, 2026
Download
Support Minecraft 26.2
[2.1.1] safeserver 2.1.1 by YourAverageDev on Apr 15, 2026
Download
Release 2.1.1 with 26.1.2 support
[2.1.0] safeserver 2.1.0 by YourAverageDev on Apr 04, 2026
Download
Release 2.1.0 with 26.1.1 support
[2.0.4] safeserver 2.0.4 by YourAverageDev on Feb 16, 2026
Download
Release 2.0.4 with 1.21.11 support and Modrinth automation
[2.0.3] safeserver 2.0.3 by YourAverageDev on Aug 03, 2025
Download
Some optimizations and now allows logged in players to reset their password
[2.0.2] safeserver 2.0.2 by YourAverageDev on Apr 09, 2025
Download
HOT-fix: restore correct gamemode after auth for first-time players

Players who disconnected mid-login were incorrectly re-set to spectator on rejoin. Fixed by defaulting to survival if no prior gamemode was saved.
[2.0.1] safeserver 2.0.1 by YourAverageDev on Apr 08, 2025
Download
Fix coordinates leak vulnerability during authentication
  • Enhance player security by teleporting authenticating players to a safe, calculated location at (0,Y,0) instead of keeping them at their join position
  • Calculate Y coordinate based on the actual surface height at (0,0) to ensure players are safely above ground
  • Detect and remedy situations where a player disconnects during authentication and rejoins, preventing them from being stuck in spectator mode
  • Update README to clearly document this security feature

Resolves #5: Coordinates Weakness vulnerability
[2.0.0] safeserver 2.0.0 by YourAverageDev on Apr 03, 2025
Download
# MAJOR UPGRADE TO 2.0.0

This project **was** abandoned for a while due to the lack of my own time. Now, the codebase has been **COMPLETELY REVAMPED** and **OPTIMIZED**.
[1.7] safeserver 1.7 by YourAverageDev on Aug 06, 2024
Download
Latest update to the safeserver mod, now supporting 1.21, contact me if there's any issues.
[1.6] safeserver 1.6 by YourAverageDev on May 14, 2024
Download
Updated for better teleportation accuracy!
[1.5] safeserver 1.5 by YourAverageDev on Apr 30, 2024
Download
Updated for 1.20.6!
[1.5] safeserver 1.5 by YourAverageDev on Apr 28, 2024
Download
SafeServer updated for Minecraft 1.20.5!
[1.4] safeserver 1.4 by YourAverageDev on Apr 13, 2024
Download
Updated code for Operator check logic.
safeserver Icon
Download safeserver
Select game version
Select platform