DiscordAuth

DiscordAuth 是一款插件,可让你快速且轻松地为 Velocity 代理设置 Discord 授权。
目前该插件仍在开发中,因此部分功能可能会发生变化。
如果发生任何问题,请向 issues 报告。
安装
要设置 DiscordAuth,你需要遵循几个步骤。
首先,你需要配置一个 Velocity 代理。
必须至少有两个子服务器,其中一个是大厅服务器。
其名称必须在 config.toml 中指定。
另外,还需要在 config.toml 中指定 Discord 机器人令牌和用户 ID,
以便能够使用该机器人本身的命令。
总的来说,这些都是必要的设置。
config.toml 和 messages.toml 文件中找到的属性可以自由修改。
config.toml 设置示例:
# 存储玩家账户的文件路径
accounts_file_name = "plugins/DiscordAuth/accounts.json"
# 密钥和会话的有效期(秒)
key_expiration_time = 60
session_expiration_time = 3600
# 大厅服务器名称
lobby_server_name = "lobby"
# Discord 机器人令牌
bot_token = ""
# Discord 管理员
discord_admin_id = ""
命令
Discord
/add <name> <discord id>- 添加新账户。/remove <name> <discord id>- 删除现有账户。
Minecraft
-
/discordauth reload config- 重新加载插件配置。 -
/discordauth reload messages- 重新加载插件消息。 -
/discordauth reload all- 重新加载插件配置和消息。 -
/account add <discord id> <name>- 添加新账户。 -
/account remove <discord id> <name>- 删除现有账户。 -
/test是用于调试的临时命令。
账户
账户以 JSON 格式存储。模式如下所示:
[
{
"name": "",
"discordId": ""
},
...
{
"name": "",
"discordId": ""
}
]
画廊




DiscordAuth

DiscordAuth is a plugin that allows you to quickly and easily set up Discord authorization for your Velocity proxy.
At the moment the plugin is under development, so some parts of the plugin may be changed.
If any issue occurs, please report it to issues.
Installation
To set up DiscordAuth, there are several steps you need to follow.
First you need to set up a Velocity proxy.
There must be at least two child servers, one of which will be a lobby.
Its name must be specified in config.toml.
It is also important to specify the Discord bot token and user ID,
which will be able to use the commands of this very bot in config.toml.
In general, these are all the necessary settings.
The properties found in the config.toml and messages.toml files can be freely modified.
Example of config.toml settings:
# Path to the file where player accounts will be stored
accounts_file_name = "plugins/DiscordAuth/accounts.json"
# Lifetime in seconds of the key and session, respectively
key_expiration_time = 60
session_expiration_time = 3600
# Server lobby name
lobby_server_name = "lobby"
# Discord bot token
bot_token = ""
# Discord admin
discord_admin_id = ""
Commands
Discord
/add <name> <discord id>- adds a new account./remove <name> <discord id>- deletes an existing account.
Minecraft
-
/discordauth reload config- reloads the plugin config. -
/discordauth reload messages- reloads the plugin messages. -
/discordauth reload all- reloads the plugin config and messages. -
/account add <discord id> <name>- adds a new account. -
/account remove <discord id> <name>- deletes an existing account. -
/testis a temporary command needed for debugging.
Accounts
Accounts are stored in JSON format. The schema is presented below:
[
{
"name": "",
"discordId": ""
},
...
{
"name": "",
"discordId": ""
}
]
Gallery




下载 DiscordAuth
下载 DiscordAuth
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 DiscordAuth
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 DiscordAuth
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 DiscordAuth
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 DiscordAuth
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 DiscordAuth
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
暂无更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
用于绘制游戏内地图或在浏览器中随探索实时进行地图绘制的实时地图。
评论 0
登录后参与评分
还没有评论,来抢沙发吧