Compatibility
Minecraft: Java Edition
Platforms
Tags
Creators
Details
๐ก๏ธ MCLocalAuth
Minecraft Authentication Plugin with Integrated Discord Bot
๐ฏ Description
MCLocalAuth is a security plugin for Minecraft servers that uses Discord as an authentication system. Protect your server by limiting access to only members of your Discord community.
Works on Spigot/Paper, BungeeCord and Velocity โ the Discord bot runs on all 3 platforms with all features.
๐ฎ How It Works
- Player Connects โ Immediately disconnected with a unique code
- On Discord โ Type
/mclogin <code>(on server or in DMs with the bot) - Bot Verifies โ Is the player a Discord member?
- If Yes โ IP registered, reconnection authorized โ
- If No โ Blocked โ
๐ Usage Statistics
Spigot / Paper :
BungeeCord :
Velocity :
โจ Features
๐ Triple Layer Security
- โ Discord Required: Only members of your Discord can play
- โ Temporary Code: Each connection generates a unique code that expires
- โ IP Protection: One username = One IP โ Impossible to steal identities
๐ค Integrated Discord Bot
- Starts automatically with the server
- No external bot to host
- No network ports to open
- Native Discord slash commands
- Works on Spigot/Paper, BungeeCord and Velocity
- Commands available in DMs (globally registered)
- Automatic bot status verification at startup
๐๏ธ Flexible Storage
- YAML (default): local
data.ymlfile - MySQL (optional): shared database across servers
- Ideal for multi-server networks (BungeeCord/Velocity)
๐ Auto Update Checker
- Checks Modrinth API at startup
- Console notification if a newer version is available
๐ฎ Geyser/Bedrock Support
- Automatic Bedrock player detection
- Adapted kick messages (no color codes)
๐ Discord Commands
| Command | Description | Access |
|---|---|---|
/mclogin <code> |
Authenticate with the code received in-game | Everyone |
/mctest |
Test bot โ plugin connection | Everyone |
/status |
Check your authentication status | Everyone |
/unlink <discord_id> |
Unlink an account | Admin |
/mcadmin showips <player> |
View authorized IPs | Admin |
/mcadmin addip <player> <ip> |
Add an authorized IP | Admin |
/mcadmin removeip <player> <ip> |
Remove an authorized IP | Admin |
/mcadmin resetip <player> |
Reset all IPs | Admin |
/mcadmin setip <player> <ip> |
Set primary IP | Admin |
Admin commands are restricted to the Discord ID set in
admin.discord_idinconfig.yml.
โ๏ธ Admin Commands (in-game)
| Command | Spigot/Paper | BungeeCord | Velocity |
|---|---|---|---|
/auth showips <player> |
โ | โ | โ |
/auth addip <player> <ip> |
โ | โ | โ |
/auth removeip <player> <ip> |
โ | โ | โ |
/auth resetip <player> |
โ | โ | โ |
/auth setip <player> <ip> |
โ | โ | โ |
๐ฆ Installation
Prerequisites
- Minecraft Server 1.8.9 to 26.2 (Spigot, Paper, Purpur), BungeeCord or Velocity 3.3.0+
- Java 8 minimum (Spigot/BungeeCord) ยท Java 17 minimum (Velocity)
- Discord Bot configured on Discord Developer Portal
Spigot / Paper / BungeeCord
- Download
MCLocalAuth-v1.4.1.jar - Place the file in your server's
plugins/folder - Start the server to generate configuration
- Configure the Discord bot in
plugins/MCLocalAuth/config.yml:
discord:
enabled: true
bot_token: "YOUR_DISCORD_BOT_TOKEN"
guild_id: "YOUR_DISCORD_SERVER_ID"
invite_link: ""
admin:
discord_id: "YOUR_DISCORD_ID"
storage:
type: "yaml" # yaml or mysql
mysql:
host: "localhost"
port: 3306
database: "mclocalauth"
username: "root"
password: ""
- Restart the server
- Test with
/mcteston Discord
Velocity
- Download
MCLocalAuth-Velocity-v1.4.1.jar - Place in your proxy's
plugins/folder - Configure
plugins/mclocalauth/config.yml - Restart the proxy
๐ง Configuration
Discord Bot Setup
- Go to Discord Developer Portal
- Create a new application
- Bot tab โ Create a bot
- Copy the token (never share it!)
- Enable these Privileged Gateway Intents:
- โ Server Members Intent
- โ Message Content Intent (optional)
- OAuth2 โ URL Generator tab:
- Check
botandapplications.commands - Permissions:
Administrator(or custom)
- Check
- Invite the bot to your server with the generated URL
Get Discord Server ID
- Enable Developer Mode in Discord:
- Settings โ Advanced โ Developer Mode
- Right-click on your server โ Copy Server ID
- Paste in
guild_idinconfig.yml
๐ Compatibility
| Platform | Versions | JAR |
|---|---|---|
| Paper | 1.8.9 โ 26.2 โ | MCLocalAuth-v1.4.1.jar |
| Spigot | 1.8.9 โ 1.21.x โ | MCLocalAuth-v1.4.1.jar |
| Purpur | 1.8.9 โ 1.21.x โ | MCLocalAuth-v1.4.1.jar |
| BungeeCord | Build 2068 โ | MCLocalAuth-v1.4.1.jar |
| Velocity | 3.3.0+ โ | MCLocalAuth-Velocity-v1.4.1.jar |
Java: 8+ (Spigot/BungeeCord) ยท 17+ (Velocity)
Note: The plugin automatically detects your Minecraft version at startup.
๐ Report a Bug
If you encounter a problem:
- Verify you're using the latest version
- Check existing Issues
- If the problem persists, open a new issue with:
- Plugin version
- Minecraft version
- Server logs
- Detailed problem description
๐ก Suggest a Feature
Have an idea? Open an issue with the enhancement tag!
๐ License
This project is under proprietary license. See the LICENSE file for more details.
TL;DR:
- โ Free use on Minecraft servers
- โ View code to learn
- โ No modification/redistribution
- โ No commercial use
๐ Credits
Developer: UNGEUR
Libraries used:
- JDA - Java Discord API
- Spigot API - Minecraft Server API
- BungeeCord API - Proxy API
- Velocity API - Proxy API
- bStats - Plugin Metrics
๐ Support
- Discord: Discord Server
- Issues: GitHub Issues
โญ If this plugin is useful to you, don't hesitate to star it!
Made with โค๏ธ for the Minecraft community


