Discord 登录
允许你的成员使用 Discord 进行登录
配置:
配置文件
# DiscordLogin 配置
# 你的 Discord 机器人令牌 (token)
bot-token: "discord_token"
# 你的 Discord 服务器 (Guild) ID
guild-id: 43902483920
# 当用户点击“否”时,封禁其 IP 的时长(以秒为单位)(默认值:900 = 15 分钟)
ip-ban-duration-seconds: 900
# 玩家必须在多少秒内完成登录验证,否则将被踢出
login-timeout-seconds: 60
# 聊天消息前缀(支持 & 颜色代码)
message-prefix: "&8[&bDiscordLogin&8]&r "
将 bot_token 替换为你自己的,并将你的服务器 ID 填入 guild-id。
如何获取 Guild ID?

常见问题解答
我在哪里可以看到插件的工作原理?
请查看画廊标签页(Gallery tab)。
如何解绑我的或成员的账号?
进入数据文件(Paper 为 plugins/DiscordLogin/data.yml,其他版本为 config/DiscordLogin_data.json),找到该用户的 UUID(格式为:DiscordID),删除整行,然后重启服务器。
如果你是普通成员,请联系工作人员执行这些步骤。
我想建议一个想法/报告一个问题
在 Discord 上添加我:stacik_
如何排除某些成员?
即将推出
玩家在验证期间可以聊天吗?
不可以
玩家在验证期间能做什么?
什么都做不了
为什么你要制作这个插件?
为了解决忘记密码的问题(如果使用普通的登录系统),并防止他人未经授权访问你的账号。
我怎么知道这个插件不会泄露我的 Minecraft 或 Discord 账号信息?
它不会泄露。原因如下:
如果我不填写服务器的 Guild ID 会怎样?
你需要等待一小时,以便 Discord 全局注册这些命令。
有没有像私信(DMs)那样的 Discord 机器人命令?
目前还没有,但我绝对考虑过添加该功能。
当前的想法包括:
- !account kick - 如果你的账号在线,将其踢出游戏
- !account unlink - 解除账号绑定(需要两次确认)
- !account info - 返回一些基本的账号信息,可能还包括玩家皮肤
鸣谢
dangkhoi6162 - 报告重大问题和提供想法
Discord Login
Allows your members to log in with discord
Configuration:
Config file
# DiscordLogin Configuration
# Your Discord bot token
bot-token: "discord_token"
# Your Discord server (guild) ID
guild-id: 43902483920
# How long (in seconds) to IP-ban a user when they press No (default: 300 = 5 minutes)
ip-ban-duration-seconds: 900
# How long (in seconds) a player has to approve the login before being kicked
login-timeout-seconds: 60
# Chat message prefix (supports & color codes)
message-prefix: "&8[&bDiscordLogin&8]&r "
Replace the bot_token with yours
and put in your server id in guild-id
How to get guild-id?

Faq
Where do I see how the plugin works?
Check the gallery tab
How do I unlink mine/a member account
Go into the data file (plugins/DiscordLogin/data.yml for Paper or config/DiscordLogin_data.json), and find the UUID of the person (formatted UUID: DiscordID) and remove the whole line, then restart the server
If you are a member, ask a staff member to do these steps
I wanna suggest an idea/report a problem
Add me on discord: stacik_
How to exclude members?
That's coming soon
Can players chat during the verification?
No
What can players do during verification?
Absolutely nothing
Why did you create this plugin?
To prevent the problem with of forgetting passwords (if using a normal login system) and also to prevent people from accessing your account without your permission
How do I know this plugin won't compromise my Minecraft or Discord account?
It can't. Here's why:
-The plugin never asks for your password, email, or any credentials
-It only sends a one-time code in-game that you paste into a Discord bot command
-The bot only knows your Discord user ID (a public number) and your Minecraft UUID, the same info any server already has
What if I don't put my server guild id?
You will have to wait an hour for discord to register the commands globally
Is there any discord bot commands, like in DMs?
No not yet, but I am absolutely thinking of adding that
Current ideas:
- !account kick - Kicks your account if its online
- !account unlink - Unlinks your account with 2 confirmations
- !account info - Returns some basic account info and possibly the player skin
Credits
dangkhoi6162 - Reporting big issue & ideas
评论 0
登录后参与评分
还没有评论,来抢沙发吧