DC Auth
你是否曾经梦想拥有一个 Minecraft 服务器,玩家再也不用输入 /login 12345?只需在 Discord、Telegram 或网站上点击按钮,就能瞬间进入游戏?无需密码,没有垃圾信息,只有纯粹的安全与便捷?
幸运的是,我的插件让这一切成为可能!
我最初是为运行在 1.21.1 版本的 Paper 服务器制作的,但我认为它在更高版本上也能正常工作。
该插件包含以下功能:
BOT 攻击防护
标准的 Minecraft 机器人和扫描器无法绕过授权系统:
- 每位玩家在加入前必须通过 Discord、Telegram 或网站进行绑定
- 未授权的玩家将立即被踢出,并显示一个 6 位验证码
- 机器人无法生成或输入有效验证码
- 彻底消除机器人攻击和登录垃圾信息
- 保护你的服务器免受自动化扫描器和破坏性机器人的侵害
- 不再出现假玩家填满你的标签列表!
三种授权方式
玩家可以通过多个平台绑定其账户:
- Discord 机器人 — 在私聊中发送验证码即可完成绑定
- Telegram 机器人 — 同样简单的验证码系统
- 网站 — 通过 Google 或 Yandex 进行 OAuth 认证,输入
/sitecode 即可搞定!
所有方法同时可用——玩家选择最方便的一种。
智能 IP 保护
会话会记住玩家的 IP 地址:
- 相同 IP = 即时登录
- IP 变更 = 机器人发送带有单次点击确认的请求
- 玩家确认:“是的,是我”或“不,阻止它!”
- 无 IP = 玩家未经过授权无法登录
会话管理
- 会话存储在 YAML 文件中
- 可配置会话持续时间(小时)
- 自动过期
- 通过机器人或网站续期会话
- 管理员完全控制任何会话
自定义皮肤
两种设置自定义皮肤的方式:
完整的 Moderation 系统
| 命令 |
描述 |
/dcban <nick> |
封禁玩家 + 自动封禁会话中的 IP |
/dcbanip <nick> |
仅封禁会话中的 IP |
/dcmute <nick> |
静音并通知 Discord |
/dcpardon <nick> |
解封昵称 + IP |
- 所有封禁和静音操作都会记录到 Discord
- 带有玩家信息和皮肤的精美嵌入卡片
- 玩家会收到关于封禁的私聊消息
Discord 通知
所有内容都以精美的嵌入卡片形式发送到 Discord:
- 玩家加入时附带 IP 和地理位置(国家、城市、ISP)
- 封禁信息包含原因、时长和管理员名称
- 静音信息包含原因和时长
- 解封信息
- 购买记录和礼物发放记录
- 嵌入卡片中包含玩家皮肤!
礼物日志记录
/notification gift <admin> <player> <gift> [reason]
- 向 Discord 发送关于 Plus 发放、订阅或任何奖励的精美通知
- 非常适合变现和提高透明度
账户重新绑定
玩家可以将其账户转移到新昵称:
/relink_auth <new_nick> — 供玩家使用(30 天冷却时间)
/relink_other <old> <new> — 供管理员使用(无冷却时间)
- 所有机器人和网站绑定都会随账户一起转移
代理轮换
为稳定机器人操作而设计的自动代理轮换:
- 从 4 个来源收集 SOCKS5 代理
- 通过 Discord 网关检查每个代理
- 每 15 分钟轮换一次
- 支持带认证的私有代理
- 如果代理失效则自动回退
Discord 到 Telegram 中继
所有来自已配置 Discord 频道的消息都会复制到 Telegram 话题中:
- 通过配置文件中的
duplicate-channels 进行配置
- 非常适合跨平台 Moderation
- 双向工作(Telegram 到 Discord 即将推出)
受支持的认证 SOCKS5
完全支持带用户名和密码的私有 SOCKS5 代理:
- Discord 机器人可通过代理运行
- Telegram 机器人可通过代理运行
- WebSocket 的 HTTP CONNECT 桥接
- 即使在严格防火墙下也能保持连接稳定
美观的踢出消息
当玩家因未授权而被踢出时:
- 提供用于快速绑定的 6 位验证码
- 可点击按钮:Discord / Telegram / 网站
- 验证码可一键复制
- 整体设计简洁干净
命令
玩家命令
| 命令 |
描述 |
/getcode |
获取用于 Discord/Telegram 绑定的验证码 |
/sitecode <code> |
绑定网站账户(Google/Yandex) |
/skin set <nick/URL> |
设置自定义皮肤 |
/relink_auth <new_nick> |
将账户重新绑定到新昵称 |
管理员命令
| 命令 |
描述 |
/dcauth reload |
重载配置并重启机器人 |
/dcauth stats |
会话统计信息 |
/dcauth sessions list |
列出所有会话 |
/dcauth sessions info <nick> |
查看会话信息 |
/dcauth sessions delete <nick> |
删除玩家的会话 |
/dcauth sessions cleanup |
删除所有过期的会话 |
/dcban <nick> [reason] |
封禁 + 自动封禁 IP |
/dcbanip <nick> [reason] |
封禁会话中的 IP |
/dcmute <nick> [duration] [reason] |
静音并通知 Discord |
/dcpardon <nick> |
解封昵称 + IP |
/getopcode <nick> |
获取玩家的绑定验证码 |
/notification plus <nick> <duration> |
赠送 Plus 并通知 Discord |
/notification gift <admin> <player> <gift> [reason] |
记录礼物到 Discord |
/relink_other <old> <new> |
重新绑定任意玩家(无冷却时间) |
权限
| 权限 |
描述 |
dcauth.admin |
访问所有管理员命令 |
dcauth.use |
使用皮肤和重新绑定命令 |
要求
- Paper 1.21.1 或更高版本(应在 1.16+ 上也能工作)
- Discord 机器人令牌
- Telegram 机器人令牌(可选)
- 支持 OAuth 的网站(可选)
- Java 17 或更高版本
如果遇到任何问题,请在 Telegram 上联系我!@AlexsandrDeveloper
(如果你对购买该插件的源代码感兴趣,也请私信我)
DC Auth
Have you ever wanted a Minecraft server where players never type "/login 12345" again? Where they just press a button in Discord, Telegram, or on the website and they're instantly in? No passwords, no spam, just pure security and convenience?
Luckily for you, there's my plugin that makes it possible!
I originally made this for my Paper server on version 1.21.1, but I think it should work on higher versions too.
So, the plugin includes:
BOT ATTACK PROTECTION
Standard Minecraft bots and scanners cannot bypass the authorization system:
- Every player must be linked through Discord, Telegram, or Website before joining
- Unauthorized players are kicked immediately with a 6-digit code
- Bots cannot generate or enter valid codes
- Completely eliminates bot attacks and login spam
- Protects your server from automated scanners and griefing bots
- No more fake players filling your tab list!
THREE AUTHORIZATION METHODS
Players can link their account through multiple platforms:
- Discord bot — send a code in DM and you're linked
- Telegram bot — same simple code system
- Website — OAuth via Google or Yandex, enter
/sitecode and you're done!
All methods work simultaneously — players choose what's most convenient for them.
SMART IP PROTECTION
The session remembers the player's IP address:
- Same IP = instant login
- IP changed = bot sends confirmation request with one click
- Player confirms: "Yes, it's me" or "No, block it!"
- No IP = player can't login without authorization
SESSION MANAGEMENT
- Sessions are stored in YAML file
- Configurable session duration (hours)
- Automatic expiration
- Session renewal via bot or website
- Full admin control over any session
CUSTOM SKINS
Two ways to set custom skins:
-
/skin set <nick> — copy any licensed player's skin
-
/skin set <URL> — set any skin from an image URL!
-
Skin saves forever, even after rejoin
-
Works with offline players
-
Loads automatically on join
COMPLETE MODERATION SYSTEM
| Command |
Description |
/dcban <nick> |
Ban player + auto IP-ban from session |
/dcbanip <nick> |
Ban only IP from session |
/dcmute <nick> |
Mute with Discord notification |
/dcpardon <nick> |
Unban nick + IP |
- All bans and mutes are logged to Discord
- Beautiful embeds with player info and skin
- Player receives DM about the ban
DISCORD NOTIFICATIONS
Everything is sent to Discord in beautiful embeds:
- Player joins with IP and geolocation (country, city, ISP)
- Bans with reason, duration, and admin name
- Mutes with reason and duration
- Unbans
- Plus purchases and gift issuances
- Player skin in the embed!
GIFT LOGGER
/notification gift <admin> <player> <gift> [reason]
- Sends a beautiful notification to Discord about Plus issuance, subscription, or any reward
- Perfect for monetization and transparency
ACCOUNT RELINKING
Players can transfer their account to a new nickname:
/relink_auth <new_nick> — for players (30-day cooldown)
/relink_other <old> <new> — for admins (no cooldown)
- All bot and site bindings transfer with the account
PROXY ROTATOR
Automatic proxy rotation for stable bot operation:
- Collects SOCKS5 proxies from 4 sources
- Checks each proxy via Discord gateway
- Rotates every 15 minutes
- Private proxy support with authentication
- Automatic fallback if proxy dies
DISCORD TO TELEGRAM RELAY
All messages from configured Discord channels are duplicated to Telegram topics:
- Configure via
duplicate-channels in config
- Perfect for cross-platform moderation
- Works both ways (Telegram to Discord coming soon)
AUTHENTICATED SOCKS5 SUPPORT
Full support for private SOCKS5 proxies with login/password:
- Discord bot works through proxy
- Telegram bot works through proxy
- HTTP CONNECT bridge for WebSocket
- Stable connection even with strict firewalls
BEAUTIFUL KICK MESSAGES
When a player is kicked for authorization:
- 6-digit code for quick linking
- Clickable buttons: Discord / Telegram / Website
- Code can be copied with one click
- Everything in one clean design
COMMANDS
Player Commands
| Command |
Description |
/getcode |
Get code for Discord/Telegram linking |
/sitecode <code> |
Link website account (Google/Yandex) |
/skin set <nick/URL> |
Set custom skin |
/relink_auth <new_nick> |
Relink account to new nick |
Admin Commands
| Command |
Description |
/dcauth reload |
Reload config and restart bots |
/dcauth stats |
Session statistics |
/dcauth sessions list |
List all sessions |
/dcauth sessions info <nick> |
Session information |
/dcauth sessions delete <nick> |
Delete player's session |
/dcauth sessions cleanup |
Delete all expired sessions |
/dcban <nick> [reason] |
Ban + auto IP-ban |
/dcbanip <nick> [reason] |
Ban IP from session |
/dcmute <nick> [duration] [reason] |
Mute with Discord notification |
/dcpardon <nick> |
Unban nick + IP |
/getopcode <nick> |
Get linking code for player |
/notification plus <nick> <duration> |
Give Plus with Discord notification |
/notification gift <admin> <player> <gift> [reason] |
Log gift to Discord |
/relink_other <old> <new> |
Relink any player (no cooldown) |
PERMISSIONS
| Permission |
Description |
dcauth.admin |
Access to all admin commands |
dcauth.use |
Use skin and relink commands |
REQUIREMENTS
- Paper 1.21.1 or higher (should work on 1.16+)
- Discord bot token
- Telegram bot token (optional)
- Website with OAuth (optional)
- Java 17 or higher
If you run into any issues, contact me on Telegram! @AlexsandrDeveloper
(Also message me if you're interested in buying the plugin's source code)
评论 0
登录后参与评分
还没有评论,来抢沙发吧