Compatibility
Minecraft: Java Edition
Platforms
Supported environments
75% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Creators
Details
SafeServer Mod Description
The SafeServer mod is a Fabric mod for Minecraft that adds a password-based login system to enhance server security (offline-mode / not using Mojang Verification Servers / cracked servers). It prevents players from accessing the server until they set a password and log in using the provided commands.
Key Features
-
Password-based Login: Players are required to set a password using the
/setPassword <password>
command before they can start playing on the server. They need to log in using the/login <password>
command to enter the game. -
Spectator Mode: When a player joins the server, they are initially placed in spectator mode and locked in the same position until they successfully log in. This prevents unauthorized players from interacting with the game world.
-
Operator Status: If a player is an operator (has permission level 2), their operator status is temporarily revoked when they join the server. They regain their operator status once they successfully log in.
-
Password Storage: Player passwords are securely stored in a properties file named
passwords.properties
. The passwords are associated with the player's UUID to ensure unique identification. -
First-Time Player Instructions: When a player joins the server for the first time and doesn't have a password set, they receive instructions on how to set their password and log in.
-
Logging: The mod logs important events such as player joins, leaves, password setting, and login attempts to the console for monitoring and debugging purposes.
Commands
/setPassword <password>
: Allows a player to set their password. This command can only be used once per player./login <password>
: Allows a player to log in using their previously set password. Upon successful login, the player is placed in survival mode and can start playing.
Installation
To use the SafeServer mod, follow these steps:
- Install the Fabric mod loader for your Minecraft version.
- Download the SafeServer mod JAR file.
- Place the JAR file in your Minecraft mods directory.
- Start your Fabric server with the mod installed.
The SafeServer mod provides a simple and effective way to secure your Minecraft server by implementing a password-based login system. It ensures that only authorized players can access the server and helps prevent griefing and unauthorized access.