Create a professional Minecraft authentication plugin named "AceXLogin" for Paper/Spigot servers supporting versions 1.20.1 to 1.21.11.
โ๏ธ Core Features:
- Players must /register or /login before accessing the server.
- If the player does not authenticate within a configurable time, they are automatically kicked.
- The timeout duration must be configurable in config.yml.
๐ Spawn System:
- Support two spawn points:
1. Auth Spawn (for login/register) 2. Main Spawn (after successful login)
- Commands:
/acexlogin setauthspawn /acexlogin setmainspawn
- Players are teleported to auth spawn on join, then to main spawn after login.
๐ Player Restrictions (before login/register):
- Apply BLINDNESS effect.
- Prevent movement (no walking, jumping, sneaking).
- Prevent item usage.
- Lock hotbar (force slot 3 only).
- Disable inventory interaction.
๐ฌ Action Bar / Title Messages:
- Show messages like:
"/login <password>" "/register <password>"
- Messages must be customizable in config.yml.
๐ง Session System:
- After successful login, player stays logged in for a configurable duration (e.g., 14h).
- Time format configurable (e.g., 1h, 30m, etc).
๐ Password System:
- Store passwords securely in a file (use hashing like BCrypt).
- File-based storage (YAML or JSON).
- Each player's password linked to their username.
๐ Reset Password System:
- Command: /resetpassword
- Steps:
1. Ask for current password 2. If correct โ allow setting new password 3. If wrong โ show "Contact admin"
- Must be interactive (chat-based input system).
๐ Anti-Bypass Security:
- Prevent players from joining backend servers (Velocity/Bungee) without authentication.
- Ensure authentication check before allowing server switch.
๐งพ IP Limit System:
- Limit number of accounts per IP.
- Configurable in config.yml.
- If exceeded โ kick player with message.
๐ Config System:
- Fully customizable config.yml including:
- Login timeout - Messages - Session duration - IP limit - Spawn locations - Effects toggle
๐ Admin Features:
- OPs can bypass login/register.
- Permissions:
acexlogin.admin acexlogin.bypass
๐ฆ Compatibility:
- Must support:
- Paper - Spigot - Velocity (proxy protection)
- Versions: 1.20.1 โ 1.21.11
๐งผ Code Quality:
- Clean, modular Java code.
- Use listeners for player events.
- Use scheduler for timeout system.
- No lag or memory leaks.
- Well-commented code.
โจ Extra:
- Smooth user experience.
- Fast and responsive.
- Aggressive anti-bot / anti-alt protection.
No files in this session