Security: Password Protection Mod for Minecraft Servers

Security mod for Minecraft adds a password barrier on login, encrypts data, and auto-bans brute-force attempts to keep accounts safe from hijacking.

Download Security for Minecraft 1.7.4, 1.6.2

Original name: Security

Minecraft: 1.6.2, 1.7.4

FileVersionLoaderSize
Security-0.2.1.jar59 КБDownload
Security-0.1.jar1.6.258 КБDownload
Security-0.2.2.jar1.6.259 КБDownload
Security-0.2.3.jar1.6.265 КБDownload
Security-0.2.jar1.7.459 КБDownload

Security: Password Protection for Minecraft Servers

Running a public Minecraft server is an exciting endeavor, but it comes with a significant responsibility: safeguarding your players and their hard-earned progress. While the official Mojang authentication servers have long been the standard for verifying identities, history has demonstrated that they are not infallible. There have been instances where malicious actors exploited vulnerabilities to gain access to high-profile accounts, including those of well-known developers, or even obtained operator privileges on servers they had no business touching. For server owners who want an additional, robust layer of defense that operates directly at the Bukkit level, the Security: Password Protection for Minecraft Servers plugin is an essential tool.

Understanding the Need for a Secondary Defense

The core philosophy behind this plugin is simple: do not rely on a single point of failure. Even if a player's Mojang account is compromised, the thief should not be able to wreak havoc on your server. The plugin acts as a gatekeeper, demanding proof of identity from the player themselves, independent of the launcher they used. This ensures that even if a session token is stolen or an account is cracked, the intruder will be stopped at the door. This is particularly critical for servers with a strong community, where griefing or theft can destroy months of collaborative work.

How the Password Barrier Works

The plugin cleverly utilizes the Bukkit Conversation API to intercept the standard chat interface. When a player connects, they are greeted with a prompt to enter their password before they can execute any commands or send messages. This creates a secure, interactive dialog right in the chat window. The server asks a question, and the player must provide the correct answer to unlock their session. This method is seamless and does not require any external software or client-side modifications.

By default, the plugin is configured to ask for a password only when a player logs in from a new IP address. This is a user-friendly approach, allowing regular players on a fixed connection to bypass the prompt on subsequent logins. However, for those who prioritize security above all else, a "secure mode" is available. Enabling this feature forces the password prompt on every single connection, regardless of the IP address. This is an excellent option for players who share a device or network with others, or for those who simply want the absolute highest level of protection for their account.

Encryption and Brute-Force Protection

Storing passwords in plain text is a cardinal sin in software development. The Security plugin takes this seriously by encrypting all stored passwords. This means that even if a server administrator gains access to the underlying database files, they will not be able to read the actual passwords. This protects players from potential internal threats and data breaches.

Furthermore, the plugin is equipped with a robust anti-brute-force mechanism. If an unauthorized user attempts to guess a password, the plugin will automatically ban their IP address after a configurable number of failed attempts. The duration of this ban can be set anywhere from a few minutes to a permanent block. This feature effectively deters malicious actors from trying to systematically guess passwords, as the risk of a long-term IP ban is a significant deterrent. For a hassle-free setup, you can download Security: Password Protection for Minecraft Servers through the foxygame.net launcher, which simplifies mod management and ensures version compatibility.

Player-Facing Commands

The plugin empowers players with a straightforward set of commands to manage their own security. These commands are intuitive and designed to be accessible to all users, even those unfamiliar with technical jargon.

  • /ChangePassword [new password]: This command allows a player to update their existing password. To prevent unauthorized changes, the system will first prompt the player to confirm their current password.
  • /SecureMode [enable/disable]: This toggles the secure mode for an individual player. When enabled, the password will be required for every login. Server administrators can also force this setting for specific groups via permissions.
  • /SetRecoveryEmail [email]: This binds an email address to the player's account, providing a recovery path if they ever forget their password. Changing the email address will also require the current password for verification.

Administrative Tools and Permissions

Server operators are given a powerful suite of tools to assist their community and enforce security policies. These tools are essential for managing a large and active player base.

  • /ResetPassword [player]: This command allows an admin to reset a player's password if they have forgotten it, ensuring they are not permanently locked out of their account.
  • /StrikeAutoBan [max attempts] [duration]: This configures the auto-ban system. Admins can set the number of incorrect attempts allowed and the duration of the ban in minutes (using 0 for a permanent ban).
  • /GetRecoveryEmail [player]: This displays the recovery email associated with a player's account, helping admins verify a player's identity when they request a password reset.
  • /SetAdminEmail [email]: This sets a contact email for the administrator, which players can use to request assistance with password recovery.

The permission system is highly granular, allowing for precise control over who can do what. For example, an admin can require all new players to set a password before they are allowed to play, using a permission node like security.requirepassword. Similarly, the security.requiresecuremode flag can be used to force admins and moderators to verify their identity on every login, adding an extra layer of security for high-privilege accounts.

Compatibility, Localization, and Future Plans

The plugin is designed to work seamlessly with the LanguageAPI, making it fully localizable. This means the interface can be translated into any language, allowing server owners to cater to an international audience. The developer is also actively working on new features, including customizable commands that can be executed on a failed password attempt, and a delay option for the first password prompt to allow MOTD plugins to display their messages first. There are also plans for a list of specific commands that would require a password re-entry before execution, offering granular control over sensitive actions.

Regarding versions, the plugin is built for the Bukkit/Spigot API, making it compatible with a wide range of Minecraft versions, including 1.8, 1.12, 1.16, and 1.20. It is a server-side plugin, so it does not require clients to install anything. For a smooth experience, ensure you have the correct version for your server. The installation process is simple: place the JAR file in your plugins folder and restart the server. For a detailed guide on how to install, many community tutorials are available. You can also find Security: Password Protection for Minecraft Servers for Minecraft on popular mod repositories.

In conclusion, the security of your Minecraft server should never be taken for granted. The official authentication system is a good first step, but the Security: Password Protection for Minecraft Servers plugin provides a crucial, personalized barrier that protects your community from account takeovers and their devastating consequences. With its powerful encryption, flexible permission system, and user-friendly commands, it is an indispensable addition to any serious server. Taking the few minutes to install and configure this plugin is a small price to pay for the peace of mind that comes from knowing your players and their creations are safe.