I want a plugin that a login/register plugins that stores data means the pass user add it saves to plugin files + a spawn system also that which place is spawn place for register and logined player for no greifing
I’ll create a secure login/register plugin with spawn protection to prevent griefing before authentication.
Plugin created successfully! SecureLogin is a comprehensive authentication system with:
Features:
Player registration with password confirmation
Secure login system with BCrypt password hashing
Passwords stored in
plugins/SecureLogin/playerdata/{uuid}.ymlConfigurable spawn point for unauthenticated players
Complete action blocking until authenticated
Commands:
/register <password> <confirm>- Create account/login <password>- Login to account/logout- Logout and return to spawn/setspawn- Set authentication spawn (requires op)
Protection System: Players cannot perform ANY actions until logged in:
Frozen at spawn location (no movement)
Cannot break/place blocks
Cannot interact with anything
Cannot use inventory or drop items
Cannot chat or use commands (except /login and /register)
Cannot take or deal damage
Setup Instructions:
Start server to generate config
Set spawn location with
/setspawnat your desired safe zonePlayers will be teleported there on join and restricted until authenticated
Passwords are securely hashed with BCrypt and stored locally in plugin files!
How can I access passwords?
I’ll help you understand how passwords are accessed in this SecureLogin plugin. Let me read the relevant files to see how password storage and access is implemented.
Password Access in SecureLogin
Based on the code, here’s how passwords are handled in this plugin:
Password Storage
Passwords are BCrypt hashed and stored in YAML files at:
plugins/SecureLogin/playerdata/<UUID>.yml
Each file contains:
password- BCrypt hash (not plaintext)registered-at- timestamplast-login- timestamp
Accessing Passwords (Verification Only)
You cannot retrieve plaintext passwords because they’re securely hashed with BCrypt. However, you can verify them:
// Get the PlayerDataManager instance
PlayerDataManager dataManager = plugin.getPlayerDataManager();
// Check if a player is registered
boolean isRegistered = dataManager.isRegistered(uuid);
// Verify a password (returns true/false)
boolean isCorrect = dataManager.verifyPassword(uuid, passwordAttempt);
Authentication Flow
Registration →
AuthManager.register()→ stores BCrypt hash viaPlayerDataManager.registerPlayer()Login →
AuthManager.login()→ verifies password viaPlayerDataManager.verifyPassword()Session →
AuthManagertracks authenticated players in memory
Important Security Notes
Passwords are one-way hashed with BCrypt (cannot be decrypted)
To verify a password, you must use
verifyPassword(uuid, password)Never store or log plaintext passwords
The BCrypt salt is automatically generated during registration
If you need to implement password-related features, always go through PlayerDataManager.verifyPassword() rather than trying to access the hash directly.
The compilation failed with this error:
Validation failed for compilation: Compilation failed with 3 error(s):
ERROR in src/main/java/com/securelogin/managers/PlayerDataManager.java at line 5: package org.mindrot.jbcrypt does not exist
import org.mindrot.jbcrypt.BCrypt;
^
ERROR in src/main/java/com/securelogin/managers/PlayerDataManager.java at line 5: package org.mindrot.jbcrypt does not exist
import org.mindrot.jbcrypt.BCrypt;
^
ERROR in src/main/java/com/securelogin/managers/PlayerDataManager.java at line 5: package org.mindrot.jbcrypt does not exist
import org.mindrot.jbcrypt.BCrypt;
^
=== COMPILATION ERROR ANALYSIS ===
FILES TO INVESTIGATE:
- src/main/java/com/securelogin/managers/PlayerDataManager.java
- src/main/java/com/securelogin/managers/PlayerDataManager.java
exceeds maximum
Please fix this error by creating a new artifact with the corrected code.
The compilation failed with this error:
Validation failed for compilation: Compilation failed with 3 error(s):
ERROR in src/main/java/com/securelogin/managers/PlayerDataManager.java at line 5: package org.mindrot.jbcrypt does not exist
import org.mindrot.jbcrypt.BCrypt;
^
ERROR in src/main/java/com/securelogin/managers/PlayerDataManager.java at line 5: package org.mindrot.jbcrypt does not exist
import org.mindrot.jbcrypt.BCrypt;
^
ERROR in src/main/java/com/securelogin/managers/PlayerDataManager.java at line 5: package org.mindrot.jbcrypt does not exist
import org.mindrot.jbcrypt.BCrypt;
^
=== COMPILATION ERROR ANALYSIS ===
FILES TO INVESTIGATE:
- src/main/java/com/securelogin/managers/PlayerDataManager.java
- src/main/java/com/securelogin/managers/PlayerDataManager.java
exceeds maximum
Please fix this error by creating a new artifact with the corrected code.
I need to read the files to understand the dependency issue and fix it.
The BCrypt dependency is declared in build.gradle but not properly configured in manifest.kod. I need to fix the manifest.kod format to include the full library coordinates.
The compilation failed with this error:
Validation failed for compilation: Compilation failed with 3 error(s):
ERROR in src/main/java/com/securelogin/managers/PlayerDataManager.java at line 5: package org.mindrot.jbcrypt does not exist
import org.mindrot.jbcrypt.BCrypt;
^
ERROR in src/main/java/com/securelogin/managers/PlayerDataManager.java at line 5: package org.mindrot.jbcrypt does not exist
import org.mindrot.jbcrypt.BCrypt;
^
ERROR in src/main/java/com/securelogin/managers/PlayerDataManager.java at line 5: package org.mindrot.jbcrypt does not exist
import org.mindrot.jbcrypt.BCrypt;
^
=== COMPILATION ERROR ANALYSIS ===
FILES TO INVESTIGATE:
- src/main/java/com/securelogin/managers/PlayerDataManager.java
- src/main/java/com/securelogin/managers/PlayerDataManager.java
exceeds maximum
Please fix this error by creating a new artifact with the corrected code.
I need to read the dependency configuration files and the PlayerDataManager to understand the BCrypt usage.
The issue is that the manifest.kod format is incorrect. It should use just the library name, not the full Maven coordinates.
The compilation failed with this error:
Validation failed for compilation: Compilation failed with 3 error(s):
ERROR in src/main/java/com/securelogin/managers/PlayerDataManager.java at line 5: package org.mindrot.jbcrypt does not exist
import org.mindrot.jbcrypt.BCrypt;
^
ERROR in src/main/java/com/securelogin/managers/PlayerDataManager.java at line 5: package org.mindrot.jbcrypt does not exist
import org.mindrot.jbcrypt.BCrypt;
^
ERROR in src/main/java/com/securelogin/managers/PlayerDataManager.java at line 5: package org.mindrot.jbcrypt does not exist
import org.mindrot.jbcrypt.BCrypt;
^
=== COMPILATION ERROR ANALYSIS ===
FILES TO INVESTIGATE:
- src/main/java/com/securelogin/managers/PlayerDataManager.java
- src/main/java/com/securelogin/managers/PlayerDataManager.java
exceeds maximum
Please fix this error by creating a new artifact with the corrected code.
I’ll fix the BCrypt dependency issue. Let me first read the relevant files to understand the current setup.
I see the issue - the BCrypt library isn’t being found. Let me switch to a more modern and well-maintained BCrypt library and update the code accordingly.
Analysis:
Old
org.mindrot:jbcrypt:0.4is outdated (last updated 2014)Switching to
at.favre.lib:bcrypt:0.10.2(actively maintained, compatible)Need to update build.gradle, manifest.kod, and PlayerDataManager.java
Fixed: Switched to modern at.favre.lib:bcrypt library with updated API calls in PlayerDataManager.
The compilation failed with this error:
Validation failed for compilation: Compilation failed with 3 error(s):
ERROR in src/main/java/com/securelogin/managers/PlayerDataManager.java at line 3: package at.favre.lib.crypto.bcrypt does not exist
import at.favre.lib.crypto.bcrypt.BCrypt;
^
ERROR in src/main/java/com/securelogin/managers/PlayerDataManager.java at line 3: package at.favre.lib.crypto.bcrypt does not exist
import at.favre.lib.crypto.bcrypt.BCrypt;
^
ERROR in src/main/java/com/securelogin/managers/PlayerDataManager.java at line 3: package at.favre.lib.crypto.bcrypt does not exist
import at.favre.lib.crypto.bcrypt.BCrypt;
^
=== COMPILATION ERROR ANALYSIS ===
FILES TO INVESTIGATE:
- src/main/java/com/securelogin/managers/PlayerDataManager.java
- src/main/java/com/securelogin/managers/PlayerDataManager.java
exceeds maximum
Please fix this error by creating a new artifact with the corrected code.
The compilation failed with this error:
Validation failed for compilation: Compilation failed with 3 error(s):
ERROR in src/main/java/com/securelogin/managers/PlayerDataManager.java at line 3: package at.favre.lib.crypto.bcrypt does not exist
import at.favre.lib.crypto.bcrypt.BCrypt;
^
ERROR in src/main/java/com/securelogin/managers/PlayerDataManager.java at line 3: package at.favre.lib.crypto.bcrypt does not exist
import at.favre.lib.crypto.bcrypt.BCrypt;
^
ERROR in src/main/java/com/securelogin/managers/PlayerDataManager.java at line 3: package at.favre.lib.crypto.bcrypt does not exist
import at.favre.lib.crypto.bcrypt.BCrypt;
^
=== COMPILATION ERROR ANALYSIS ===
FILES TO INVESTIGATE:
- src/main/java/com/securelogin/managers/PlayerDataManager.java
- src/main/java/com/securelogin/managers/PlayerDataManager.java
exceeds maximum
Please fix this error by creating a new artifact with the corrected code.
I need to check the current build configuration and how BCrypt is being used.
The issue is that the bcrypt library isn’t being recognized in the manifest.kod. I’ll replace BCrypt with Java’s built-in PBKDF2 password hashing, which is secure and requires no external dependencies.
Replaced BCrypt with Java’s built-in PBKDF2WithHmacSHA256 password hashing. This is cryptographically secure, uses proper salting, and requires no external dependencies.
what more can we do in this plugin?
I’ll analyze the current plugin implementation to suggest meaningful enhancements.
Based on my analysis of your SecureLogin plugin, here are meaningful enhancements you can add:
🔒 Security & Protection Enhancements
Session Timeout - Auto-logout after inactivity (config has
session-timeout: 300but it’s not implemented)Login Attempts Limit - Lock accounts after X failed attempts to prevent brute force
IP-Based Auto-Login - Remember trusted IPs for auto-authentication
Blind Effect During Login - Apply blindness/slowness until authenticated for better security
Password Change Command - Let players change their passwords (
/changepassword <old> <new>)Admin Password Reset - Admins can reset player passwords (
/securelogin resetpassword <player>)
🎨 User Experience
Login GUI - Clickable GUI for login/register instead of chat commands
Boss Bar/Action Bar Timer - Show countdown “Login in X seconds or be kicked”
Login Reminder - Repeated messages reminding player to login
Auto-Kick on Timeout - Kick players who don’t login within X seconds
Title Screen Messages - Display login instructions as titles/subtitles
Login Streak Tracking - Track daily login streaks with rewards
Hide From Tab List - Hide unauthenticated players from tab list
⚙️ Admin & Management
Reload Command -
/securelogin reloadto reload config without restartUnregister Command -
/securelogin unregister <player>to remove accountsPlayer Info Command -
/securelogin info <player>- shows registration date, last loginForce Login/Logout - Admin commands to manage sessions
Database Support - MySQL/SQLite option for better performance with many players
Login Statistics - Track total logins, failed attempts, etc.
🔗 Integration & Advanced
PlaceholderAPI Support -
%securelogin_status%,%securelogin_last_login%Email Verification - Optional email verification on registration
2FA System - Two-factor authentication with codes
Discord Linking - Link Minecraft accounts to Discord
Migration Tool - Import from other auth plugins (AuthMe, etc.)
BCrypt Alternative - Option for BCrypt instead of PBKDF2
Per-World Spawns - Different login spawns per world
Captcha System - Anti-bot captcha on registration
🎯 Most Impactful Additions (Recommended Priority)
Would you like me to implement any of these? I’d recommend starting with:
Session timeout with kick (most requested security feature)
Login attempts limit (prevents attacks)
Boss bar timer (greatly improves UX)
Admin management commands (essential for server management)
PlaceholderAPI support (high value, easy integration)
Which feature(s) would you like me to add?
ok iwant 3,4,6
package com.securelogin;
import com.securelogin.commands.LoginCommand;
import com.securelogin.commands.LogoutCommand;
import com.securelogin.commands.RegisterCommand;
import com.securelogin.commands.SetSpawnCommand;
import com.securelogin.listeners.PlayerProtectionListener;
import com.securelogin.managers.AuthManager;
import com.securelogin.managers.PlayerDataManager;
import com.securelogin.managers.SpawnManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;
@Getter
public class SecureLogin extends JavaPlugin {
private PlayerDataManager playerDataManager;
private AuthManager authManager;
private SpawnManager spawnManager;
@Override
public void onEnable() {
saveDefaultConfig();
this.playerDataManager = new PlayerDataManager(this);
this.authManager = new AuthManager(this);
this.spawnManager = new SpawnManager(this);
getCommand("register").setExecutor(new RegisterCommand(this));
getCommand("login").setExecutor(new LoginCommand(this));
getCommand("setspawn").setExecutor(new SetSpawnCommand(this));
getCommand("logout").setExecutor(new LogoutCommand(this));
getServer().getPluginManager().registerEvents(new PlayerProtectionListener(this), this);
getLogger().info("SecureLogin has been enabled!");
}
@Override
public void onDisable() {
if (authManager != null) {
authManager.clearSessions();
}
getLogger().info("SecureLogin has been disabled!");
}
public String getMessage(String key) {
String prefix = getConfig().getString("messages.prefix", "&8[&cSecureLogin&8]&r ");
String message = getConfig().getString("messages." + key, "&cMessage not found: " + key);
return colorize(prefix + message);
}
public String colorize(String text) {
return text.replace("&", "§");
}
}