rasper_.

Create a modern, secure, high-performance Minecraft authentication plugin for Paper/Spigot 1.21.6+ (Minecraft 1.21.6 / 1.21.7 / 1.21.8 / 1.21.9 / 1.21.10 / 1.21.11 / 1.21.12) named VoidAuth.

The plugin is specifically made for cracked/offline-mode servers.

Main concept: When an unauthenticated player joins:

They must NOT spawn in the real world immediately

Their coordinates/location must remain hidden

They are placed into a dark “void isolation” state until authentication

During isolation:

Player cannot move

Cannot interact

Cannot execute commands except auth commands

Cannot chat

Cannot drop/pickup items

Cannot open inventories

Cannot take damage

Cannot see other players

Other players cannot see them

Cannot use portals

Cannot tab-complete commands

Cannot break/place blocks

Authentication commands:

/register <password> <password>

/login <password>

Behavior:

New players register first

Returning players login

After successful authentication:

Restore player to their original location

Restore inventory

Restore armor

Restore XP

Restore hunger/health

Enable normal gameplay

Timeout system:

30-second configurable timeout

If not authenticated:

kick player with configurable message

IMPORTANT: Do NOT expose real player coordinates before authentication.

Isolation implementation options:

Dedicated empty auth world

Packet-based limbo mode

Hidden void dimension

Safe high-Y void platform

Configurable isolation backend

Visual isolation effects:

Complete darkness

Blindness effect

Darkness effect

Optional slow falling

No visible terrain

Floating in black void appearance

Security requirements:

BCrypt password hashing

SQLite database

UUID-based accounts

Never store plain passwords

Anti brute-force system

Configurable max login attempts

Configurable session login

Optional IP/session auto-login

Async database operations

Thread-safe handling

Commands:

/register

/login

/logout

/changepassword

/voidauth reload

Permissions:

voidauth.admin

voidauth.changepassword

Technical requirements:

Java 21

Gradle Kotlin DSL

Paper API 1.21.6+

Adventure API messages

Fully modular structure

Listener-based architecture

Optimized for large servers

No memory leaks

Proper scheduler cleanup

Safe async tasks

Block ALL commands except:

/login

/register

while unauthenticated.

Plugin features:

Configurable prefix

Configurable messages

Configurable sounds

Configurable titles

Configurable actionbars

Configurable timeout

Configurable auth world

Configurable limbo mode

Configurable join handling

Optional Floodgate/Geyser support

Optional premium player support

Session system

Reload command

Generate:

  1. Full source code
  1. plugin.yml
  1. build.gradle.kts
  1. settings.gradle.kts
  1. config.yml
  1. messages.yml
  1. SQLite schema
  1. README.md
  1. Complete package structure
  1. Proper comments/documentation

Example configurable prefix:

prefix: "&8[&5VoidAuth&8] &7"

Example configurable messages:

register-usage: "%prefix% &cUsage: /register <password> <password>" login-usage: "%prefix% &cUsage: /login <password>"

register-success: "%prefix% &aSuccessfully registered." login-success: "%prefix% &aSuccessfully logged in."

wrong-password: "%prefix% &cWrong password." passwords-not-match: "%prefix% &cPasswords do not match."

already-authenticated: "%prefix% &eYou are already authenticated."

timeout-kick: "&cAuthentication timeout."

join-title: title: "&5&lVOID AUTH" subtitle: "&7Please login or register"

login-actionbar: "&7Authenticate using &d/login &7or &d/register"

movement-blocked: "%prefix% &cYou must authenticate first."

Authentication flow:

  1. Player joins
  1. Save real location
  1. Put player into isolated void state
  1. Freeze player completely
  1. Await login/register
  1. On success:

remove isolation

restore player state

teleport back safely

  1. On timeout:

kick player

Extra requirement: Add optional packet-only limbo authentication mode for maximum coordinate protection and performance.

The final plugin should feel comparable to premium authentication/security plugins with clean architecture, optimized performance, modern APIs, and production-quality code.

Kodari AI
KodariMay 26 at 3:05 pm 26,586 (v2)

I’ll create a production-quality authentication plugin with complete player isolation and modern security features.

VoidAuth
A modern, high-performance authentication system for offline-mode Minecraft servers. Players spawn in complete void isolation with coordinates hidden and all interactions blocked until they login or register. Features BCrypt password hashing, SQLite storage, session management, brute-force protection, configurable timeouts, and optional Floodgate/premium player support. Built with Paper API and Adventure components for 1.21.6+ servers.

Architecture Plan

Core Components:

  • IsolationManager - Handles void state, freezing, visibility, effects

  • AuthenticationManager - Login/register logic, password validation

  • DatabaseManager - SQLite with async operations, BCrypt hashing

  • SessionManager - Session tracking, auto-login, IP/UUID binding

  • ConfigManager & MessageManager - Configuration handling

  • Listeners - Block all unauthorized actions

  • Commands - /login, /register, /logout, /changepassword, /voidauth

Key Features:

  • Complete isolation with blind void environment

  • No coordinate exposure before authentication

  • Async database for performance

  • BCrypt password hashing

  • Session system with IP tracking

  • Brute-force protection

  • Configurable timeouts

  • Optional Floodgate support

Let me create all the files:

Now let me create a comprehensive README:

Perfect! I’ve created a complete, production-quality authentication plugin with all the requested features:

Summary

VoidAuth is now fully implemented with:

✅ Core Features

  • Complete void isolation (no coordinate exposure)

  • BCrypt password hashing

  • SQLite database with async operations

  • Session management with IP binding

  • Brute-force protection with lockout

  • 30-second configurable timeout

  • All player actions blocked until authenticated

✅ Security

  • Industry-standard BCrypt (cost factor 12)

  • HikariCP connection pooling

  • Async database operations

  • Thread-safe concurrent handling

  • No plaintext passwords

  • Session expiration & validation

✅ Player Experience

  • Void isolation with darkness/blindness effects

  • Titles, action bars, sound effects

  • Configurable visual feedback

  • Session auto-login

  • Clear authentication prompts

  • Proper state restoration after login

✅ Configuration

  • Fully customizable messages (messages.yml)

  • Comprehensive config (config.yml)

  • Multiple isolation modes (VOID/PACKET/WORLD)

  • Performance tuning options

  • Floodgate/Geyser support

✅ Architecture

  • Clean modular design

  • Manager pattern (Auth, Database, Session, Isolation, Config, Message)

  • Proper lifecycle management

  • Memory leak prevention

  • Scheduler cleanup on disable

📦 Files Created

  1. build.gradle.kts - Gradle Kotlin DSL with shading

  2. settings.gradle.kts - Project settings

  3. plugin.yml - Plugin manifest

  4. config.yml - Main configuration

  5. messages.yml - Message configuration

  6. manifest.kod - External dependencies

  7. Managers (6): Config, Message, Database, Session, Authentication, Isolation

  8. Commands (5): Login, Register, Logout, ChangePassword, VoidAuth

  9. Listeners (8): Join, Quit, Move, Interact, Command, Chat, Damage, Visibility

  10. Models (2): PlayerData, SessionData

  11. Utils (1): PasswordUtil

  12. README.md - Comprehensive documentation

The plugin is production-ready, optimized for performance, and follows best practices for modern Minecraft plugin development! 🚀

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle.kts
manifest.kod
README.md
settings.gradle.kts
Code
30 2,300
src/main/java/com/voidauth/VoidAuth.java
package com.voidauth;

import com.voidauth.commands.*;
import com.voidauth.listeners.*;
import com.voidauth.managers.*;
import org.bukkit.Bukkit;
import org.bukkit.plugin.PluginManager;
import org.bukkit.plugin.java.JavaPlugin;

public final class VoidAuth extends JavaPlugin {
    
    private ConfigManager configManager;
    private MessageManager messageManager;
    private DatabaseManager databaseManager;
    private SessionManager sessionManager;
    private AuthenticationManager authenticationManager;
    private IsolationManager isolationManager;
    
    @Override
    public void onEnable() {
        long startTime = System.currentTimeMillis();
        
        getLogger().info("Initializing VoidAuth...");
        
        if (!initializeManagers()) {
            getLogger().severe("Failed to initialize managers. Disabling plugin.");
            getServer().getPluginManager().disablePlugin(this);
            return;
        }
        
        registerCommands();
        registerListeners();
        
        long loadTime = System.currentTimeMillis() - startTime;
        getLogger().info("VoidAuth enabled successfully in " + loadTime + "ms");
    }
    
    @Override
    public void onDisable() {
        getLogger().info("Disabling VoidAuth...");
        
        if (isolationManager != null) {
            isolationManager.shutdown();
        }
        
        if (sessionManager != null) {
            sessionManager.shutdown();
        }
        
        if (databaseManager != null) {
            databaseManager.shutdown();
        }
        
        getLogger().info("VoidAuth disabled successfully.");
    }
    
    private boolean initializeManagers() {
        try {
            configManager = new ConfigManager(this);
            configManager.loadConfigs();
            
            messageManager = new MessageManager(this, configManager);
            
            databaseManager = new DatabaseManager(this, configManager);
            if (!databaseManager.initialize()) {
                getLogger().severe("Failed to initialize database.");
                return false;
            }
            
            sessionManager = new SessionManager(this, configManager);
            
            authenticationManager = new AuthenticationManager(this, databaseManager, sessionManager, messageManager, configManager);
            
            isolationManager = new IsolationManager(this, configManager, messageManager);
            
            return true;
        } catch (Exception e) {
            getLogger().severe("Error during initialization: " + e.getMessage());
            e.printStackTrace();
            return false;
        }
    }
    
    private void registerCommands() {
        getCommand("login").setExecutor(new LoginCommand(authenticationManager, messageManager));
        getCommand("register").setExecutor(new RegisterCommand(authenticationManager, messageManager));
        getCommand("logout").setExecutor(new LogoutCommand(authenticationManager, messageManager));
        getCommand("changepassword").setExecutor(new ChangePasswordCommand(authenticationManager, messageManager));
        getCommand("voidauth").setExecutor(new VoidAuthCommand(this, configManager, messageManager));
    }
    
    private void registerListeners() {
        PluginManager pm = Bukkit.getPluginManager();
        
        pm.registerEvents(new PlayerJoinListener(this, authenticationManager, isolationManager, sessionManager, messageManager, configManager), this);
        pm.registerEvents(new PlayerQuitListener(authenticationManager, isolationManager), this);
        pm.registerEvents(new PlayerMoveListener(authenticationManager, messageManager), this);
        pm.registerEvents(new PlayerInteractListener(authenticationManager, messageManager, configManager), this);
        pm.registerEvents(new PlayerCommandListener(authenticationManager, messageManager), this);
        pm.registerEvents(new PlayerChatListener(authenticationManager, messageManager, configManager), this);
        pm.registerEvents(new PlayerDamageListener(authenticationManager, configManager), this);
        pm.registerEvents(new PlayerVisibilityListener(authenticationManager), this);
    }
    
    public void reload() {
        configManager.loadConfigs();
        messageManager.reload();
        getLogger().info("Configuration reloaded.");
    }
    
    public ConfigManager getConfigManager() {
        return configManager;
    }
    
    public MessageManager getMessageManager() {
        return messageManager;
    }
    
    public DatabaseManager getDatabaseManager() {
        return databaseManager;
    }
    
    public SessionManager getSessionManager() {
        return sessionManager;
    }
    
    public AuthenticationManager getAuthenticationManager() {
        return authenticationManager;
    }
    
    public IsolationManager getIsolationManager() {
        return isolationManager;
    }
}