Create a complete, production-ready Minecraft authentication plugin for Paper/Spigot 1.21.x named VoidAuth.
The plugin is designed for cracked/offline-mode servers.
Main idea: When an unauthenticated player joins the server, they are placed into a completely dark void isolation state where:
They cannot move
Cannot execute commands except auth commands
Cannot interact
Cannot chat
Cannot take damage
Cannot see other players
Other players cannot see them
Their real coordinates/location are hidden for security
After successful authentication:
New players use /register <password> <password>
Returning players use /login <password>
Once authenticated:
Restore player to their original world/location
Restore inventory
Restore armor
Restore XP
Restore hunger/health
Allow normal gameplay
If they fail to authenticate within 30 seconds:
Kick them with configurable timeout message
IMPORTANT SYSTEM DESIGN: DO NOT teleport player into the real world before authentication.
Instead:
Create a temporary isolated authentication state
Teleport them to a fake void location such as:
empty custom world
or high Y-level hidden dimension
or packet-based fake world
Must be pitch black using blindness + darkness effects
Player should appear floating in darkness
No fall damage
No movement allowed
No coordinates exposed
No entity interaction
Security requirements:
Use BCrypt password hashing
Never store plain passwords
Use SQLite database
UUID-based storage
Session system optional/configurable
Anti brute-force login attempts
Configurable max attempts
Configurable timeout
Commands:
/register <password> <password>
/login <password>
/changepassword <old> <new>
/logout
/voidauth reload
Permissions:
voidauth.admin
voidauth.changepassword
Technical requirements:
Java 21
Gradle build system
Paper API 1.21.1
Fully async database operations
Clean package structure
Event listeners separated properly
Use Adventure API for messages
Use configurable sounds/titles/actionbars
Block ALL commands except:
/login
/register
while unauthenticated.
Block:
movement
dropping items
inventory access
command tab completion
chatting
item pickup
block breaking
block placing
entity interaction
damage
crafting
portals
Features:
Configurable authentication timeout
Configurable spawn isolation mode
Configurable messages
Configurable sounds
Configurable titles
Configurable actionbars
Configurable join quit messages
Optional auto-login by IP/session
Optional premium UUID support
Optional Floodgate/Geyser support
Reload command
Create the following:
- Full source code
- plugin.yml
- config.yml
- messages.yml
- Complete package structure
- SQL schema
- README
- Proper comments
- Example configs
- Gradle build files
Configurable prefix example:
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."
Isolation behavior:
Store player's original location before isolation
If player disconnects before login:
keep last location saved
After login:
teleport back to saved location
First join:
teleport to server spawn after register
Returning players:
teleport to previous logout location
Code quality requirements:
No memory leaks
Proper scheduler cleanup
Proper player cache handling
Safe async handling
Thread-safe database usage
Optimized for large servers
Minimal packet spam
Proper listener unregistering
Extra feature: Add optional “limbo mode” using packets only instead of real teleportation for better security/performance.
The plugin should feel modern, secure, optimized, and similar in quality to premium authentication plugins.
I’ll create a comprehensive, production-ready authentication plugin with void isolation for cracked servers.
[Generation stopped]