Create a fully functional, production-ready Minecraft Paper/Spigot plugin named "LoginSecurityPlus".
Main Purpose:
A secure and fully configurable login/register system with advanced Discord webhook logging.
----------------------------------- ๐ฅ CORE SYSTEM (FIXED & STRICT) -----------------------------------
IMPORTANT:
The registration system MUST properly store and validate passwords.
Correct flow for /register:
- Player enters: /register <password> <password>
- Validate:
- Both passwords match - Player is not already registered
- THEN:
- Send plain text password to webhook (ONLY HERE) - Hash the password using bcrypt - Store hashed password in database (YAML or SQLite) - Mark player as registered
- Allow player to play
DO NOT:
- Skip storing password
- Only send webhook without saving
----------------------------------- ๐ LOGIN SYSTEM -----------------------------------
- If NOT registered โ force register - If registered โ require /login <password>
- Block movement - Block chat - Block commands (except allowed ones)
- Default: 3 (configurable) - Kick after exceeding attempts
----------------------------------- ๐ CHANGE PASSWORD -----------------------------------
Command: /changepass <old> <new>
Flow:
- Verify old password using hash check
- If correct:
- Send BOTH old & new password to webhook (plain text) - Hash new password - Replace stored hash
----------------------------------- ๐ RESTRICTIONS SYSTEM -----------------------------------
While not logged in:
- Apply configurable effects:
- blindness / darkness / slowness
Everything must be toggleable in config.
----------------------------------- ๐ DISCORD WEBHOOK SYSTEM (ADVANCED) -----------------------------------
Trigger ONLY on:
โ NEVER send /login passwords
----------------------------------- ๐ฆ EMBED MUST BE FULLY CONFIGURABLE -----------------------------------
In config.yml:
- Title
- Description
- Color
- Fields layout
- Footer text
- Footer icon
- Enable/disable each field
Footer MUST include: "Made By Wrylox"
----------------------------------- ๐ DATA TO SEND -----------------------------------
- Username
- UUID
- IP Address
- Country
- Region/State (HIGH ACCURACY REQUIRED)
- City
- ISP (VERY IMPORTANT)
- Account Type (Premium or Cracked)
- Event Type
- Password info (only allowed cases)
----------------------------------- ๐ LOCATION SYSTEM (ACCURATE) -----------------------------------
Use a RELIABLE IP API:
Preferred:
Alternatives:
Requirements:
- Country - Region (e.g., Assam) - City - ISP
- Must improve accuracy vs low-quality APIs
- Handle VPN/proxy cases gracefully
- Use async requests (NO main thread blocking)
----------------------------------- ๐งโ๐จ PLAYER SKIN SYSTEM (UPDATED & STRICT) -----------------------------------
IMPORTANT:
Crafatar is NOT to be used (it may be down/unreliable).
The plugin MUST use ONLY:
https://mc-heads.net/body/<username>
----------------------------------- ๐ฏ REQUIREMENTS -----------------------------------
- The embed MUST include:
- FULL 3D BODY RENDER of player skin - Set as THUMBNAIL (NOT main image, NOT footer)
Use: embed.setThumbnail(<skin_url>)
- Must support:
- Premium players - Cracked/offline players
- Since mc-heads uses username:
- Always generate skin using player username - No UUID dependency
----------------------------------- โ ๏ธ IMPORTANT LOGIC -----------------------------------
- NEVER leave embed without a skin
- ALWAYS generate valid mc-heads URL
- Handle edge cases (invalid username fallback)
----------------------------------- โ๏ธ CONFIG OPTIONS -----------------------------------
skin: enabled: true provider: MCHEADS use_thumbnail: true timeout: 3000
----------------------------------- ๐ PERFORMANCE -----------------------------------
- Do NOT block main thread
- Cache skin URLs per player
- Handle API failures gracefully
----------------------------------- ๐ง SECURITY SYSTEM -----------------------------------
- Use bcrypt hashing
- NEVER store plain passwords
- Capture plain text ONLY at input moment
- Send webhook BEFORE hashing
----------------------------------- โ๏ธ FULL CONFIG SYSTEM -----------------------------------
Everything configurable:
- Messages (ALL)
- Prefix
- Effects
- Login attempts
- Allowed commands before login
- Webhook:
- Enable/disable - URL
- Toggle each field
- Geo API selection
- Skin settings
- Kick messages
- Sounds
- Titles / actionbars
----------------------------------- ๐งฉ EVENTS -----------------------------------
Use:
- PlayerJoinEvent
- PlayerQuitEvent
- PlayerMoveEvent
- AsyncPlayerChatEvent
- PlayerCommandPreprocessEvent
----------------------------------- โก PERFORMANCE -----------------------------------
- Async webhook
- Async geo API
- Efficient caching
- No lag
----------------------------------- ๐ EXTRA FEATURES -----------------------------------
loginsecurityplus.bypass
/loginsecurityplus reload
----------------------------------- ๐ OUTPUT REQUIRED -----------------------------------
Provide:
- plugin.yml
- config.yml (fully commented)
----------------------------------- ๐ฏ FINAL REQUIREMENT -----------------------------------
This plugin MUST:
- Actually register and store users
- Not repeat previous bug
- Always send correct webhook data
- Always show 3D skin (thumbnail, even cracked)
- Include account type (cracked/premium)
- Be clean, modular, production-ready