aceblade_lunawilhunntabbbbhi

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.
Kodari can make mistakes. Review important code before using.
Files

No files in this session

Code