COWMODSКаталог модов

MyLogin

MyLogin is a lightweight authentication plugin for Minecraft servers. It provides secure password-based login, strong pre-login protection, IP-based auto login.

Автор: imSpartann2331обновлён 14 июн. 2026 г.
УправлениеХранениеУтилиты

Описание

🔐 MyLogin

MyLogin is a lightweight authentication and account-protection plugin for Minecraft Paper servers.

It provides password-based authentication, migration from Passky, offline-mode account protection, duplicate session protection, and administrative account management tools.


📖 Project Background

MyLogin was created as a modern alternative to Passky, allowing server owners to continue using existing player login data while maintaining compatibility with current Paper releases.

The plugin supports migration of existing Passky SHA-256 password data, allowing players to keep their existing passwords after migration.


✨ Features

  • Password-based player authentication
  • Passky SHA-256 migration support
  • Configurable login timeout
  • Maximum login attempt protection
  • Optional IP-based auto-login
  • Logout support
  • Admin password management
  • Blindness protection before login
  • Firework effect after successful login
  • Username case protection for offline-mode servers
  • Duplicate session protection
  • Username collision detection and reporting
  • YAML-based storage
  • Configuration migration support

📦 Requirements

  • Server: Paper
  • Supported Versions: 1.21.x
  • Java: 21+

Compatibility Notes

MyLogin uses only the standard Bukkit/Paper API and does not use NMS or CraftBukkit internals.

Because of this, the plugin is expected to work on newer Paper builds, including current 26.1.x releases, but only Paper 1.21.x is officially supported.


📜 Player Commands

CommandDescription
/register <password> <password>Register a new account
/login <password>Log into your account
/changepassword <old> <new>Change your password
/logoutLog out of your current session

🛠 Admin Commands

CommandPermissionDescription
/migratemylogin.adminMigrate Passky user data
/resetpassword <player> <newpassword>mylogin.adminReset a player's password
/deleteplayer <player>mylogin.adminDelete a player's account
/mylogin reloadmylogin.adminReload configuration
/mylogin scannamecollisionsmylogin.adminScan users.yml for username case collisions
/mylogin checkplayer <player>mylogin.adminView player login information
/mylogin statsmylogin.adminView MyLogin statistics

⚙️ Configuration

Example:

login-timeout-seconds: 300

max-login-attempts: 5

min-password-length: 4
max-password-length: 32

ip-remember: true
ip-remember-timeout: 86400

effects:
  blind: true
  firework: true

security:
  enforce-name-case: false
  scan-name-collisions-on-startup: true
  block-duplicate-sessions: true

migration:
  skip-existing-users: true

🔒 Username Case Protection

Offline-mode servers treat usernames with different capitalization as different accounts.

Examples:

SkyBuilder
SKYBUILDER
sKyBuIlDeR

When enabled:

security:
  enforce-name-case: true

Players must reconnect using the exact username capitalization originally registered.

Example:

Registered:
SkyBuilder

Joining:
SKYBUILDER

Result:

This name is already registered as 'SkyBuilder'.
Please reconnect using that exact name.

This helps prevent:

  • Duplicate inventories
  • Duplicate economy accounts
  • Duplicate claims
  • Duplicate permissions
  • Duplicate backup records

🛡 Duplicate Session Protection

When enabled:

security:
  block-duplicate-sessions: true

If a player is already online:

SkyBuilder

and another client attempts to connect using:

SkyBuilder

the new connection is denied and the original player remains online.


🔍 Username Collision Scanner

When enabled:

security:
  scan-name-collisions-on-startup: true

MyLogin scans users.yml for username case collisions.

Example:

SkyBuilder
SKYBUILDER
sKyBuIlDeR

Results are written to:

plugins/MyLogin/data/name-collision-log.yml

🔄 Migration From Passky

Requirements:

  • Passky encoder must be SHA-256
  • Player identifier must use player names

MyLogin can import existing Passky accounts without requiring players to register again.

Migration files:

plugins/MyLogin/Migration/old-users.yml
plugins/MyLogin/Migration/migration-log.yml

Migration protection:

migration:
  skip-existing-users: true

Existing MyLogin accounts are not overwritten by default.


💾 Data Storage

Main data files:

plugins/MyLogin/data/users.yml
plugins/MyLogin/data/name-collision-log.yml
plugins/MyLogin/Migration/old-users.yml
plugins/MyLogin/Migration/migration-log.yml

📄 License

MIT License

Последние версии

Все версии →
release

MyLogin 1.3.0

1.3.0
14 июн. 2026 г.155Minecraft: 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9paper, purpur, spigot
Скачать
Что нового
# MyLogin v1.3.0 ## New Features * Added username case protection for offline-mode servers * Added duplicate session protection * Added username collision scanner * Added `/mylogin checkplayer` * Added `/mylogin stats` * Added `/mylogin scannamecollisions` ## Security Improvements * Prevents players from registering alternate username capitalization when case enforcement is enabled * Prevents duplicate active sessions using the same username * Added startup username collision detection and reporting * Improved login session cleanup on disconnect, kick, and shutdown ## Migration Improvements * Added migration overwrite protection * Existing MyLogin accounts are no longer overwritten by default * Added migration logging for migrated, skipped, and overwritten accounts * Added `migration.skip-existing-users` configuration option ## Configuration Improvements * Improved configuration migration handling * Improved reload behavior * Added username security configuration options ## New Configuration Options ```yaml security: enforce-name-case: false scan-name-collisions-on-startup: true block-duplicate-sessions: true migration: skip-existing-users: true ``` ## Compatibility * Java 21+ * Paper 1.21.x * Tested on Paper 1.21.11 * Compatible with modern Paper builds using the Bukkit/Paper API ## Migration From Passky Supports migration of existing Passky SHA-256 password data without requiring players to register again. ## Notes This release focuses on account protection, offline-mode security, migration safety, and administrative tooling. ## ⚠️ Important Upgrade Notice ### Username Case Protection If your server previously allowed multiple usernames that differ only by capitalization, you must manually clean up duplicate entries before enabling username case protection. **Example duplicates:** ```text SkyBuilder SKYBUILDER sKyBuIlDeR ``` Choose the account that should remain as the primary username and remove the duplicate entries from: ```text plugins/MyLogin/data/users.yml ``` **Example:** ```text Keep: SkyBuilder Delete: SKYBUILDER sKyBuIlDeR ``` After cleanup: 1. Save `users.yml` 2. Restart the server 3. Run `/mylogin scannamecollisions` 4. Verify that no collisions are reported **Failure to clean duplicate usernames may cause:** * Login protection conflicts * Inventory restore conflicts * Economy account duplication * Permission duplication * Claim ownership conflicts * inventory Backup and restore lookup issues The username you choose to keep becomes the permanent canonical username that players must use when connecting when username case protection is enabled. ### Existing Server Recommendation Before enabling: ```yaml security: enforce-name-case: true ``` Review: ```text plugins/MyLogin/data/name-collision-log.yml ``` Resolve all reported collisions and keep only one username variant for each player. This step is strongly recommended for existing offline-mode servers upgrading from older authentication systems. ### Related Plugins Servers using plugins such as: * AxInventoryRestore * LuckPerms * Economy plugins * Claim plugins * Backup plugins should verify that all player data is associated with the same username capitalization before enabling username case protection.
release

MyLogin 1.2c

1.2c
7 мар. 2026 г.78Minecraft: 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9paper, purpur, spigot
Скачать
Что нового
First official public release of MyLogin, a lightweight authentication plugin for Minecraft servers. Features Secure login and registration system Migration support from Passky (SHA-256) Pre-login player restriction system Protection against inventory interaction before login Blocks item dropping, pickup, and movement Prevents block break/place before login Prevents player damage and hunger loss before login Chat restriction before login Command restriction (only /login and /register allowed) Security Protections Before logging in, players cannot: Move or drag items Swap hotbar items Drop or pick up items Interact with blocks Run commands except /login and /register Send chat messages Compatibility Paper 1.21.x Spigot 1.21.x Java 21 Download Download the compiled jar from the Assets section below.